Document.XMLSchemaViolations Property

Word Developer Reference

Returns an XMLNodes collection that represents all nodes in the document that have validation errors.

Syntax

expression.XMLSchemaViolations

expression   An expression that returns a Document object.

Example

The following example creates a reference to the XML elements in the active document that have validation errors.

Visual Basic for Applications
  Dim objNodes As XMLNodes

Set objNodes = ActiveDocument.XMLSchemaViolations

See Also