XMLSchemaViolations Property
From Microsoft Word Visual Basic
XMLSchemaViolations Property
Returns an XMLNodes collection that represents all nodes in the document that have validation errors.
expression.XMLSchemaViolations
expression Required. 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.
Dim objNodes As XMLNodes
Set objNodes = ActiveDocument.XMLSchemaViolations