Document.XMLSchemaViolations Property (Word)

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.

Dim objNodes As XMLNodes 
 
Set objNodes = ActiveDocument.XMLSchemaViolations

See Also

Concepts

Document Object Members

Document Object