Share via


XMLSchemaReferences.AutomaticValidation Property

Word Developer Reference

Returns a Boolean that represents whether Microsoft Word will validate the XML in a document as a user types. Read/write.

Syntax

expression.AutomaticValidation

expression   An expression that returns an XMLSchemaReferences collection.

Remarks

Corresponds to the Validate document against attached schemas check box in the XML Options dialog box. True indicates that Word performs real-time validation. False disables real-time validation.

Example

The following example disables validation of XML for the active document.

Visual Basic for Applications
  ActiveDocument.XMLSchemaReferences _
    .AutomaticValidation = False

See Also