XMLSchemaReference Object (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents an individual schema that is attached to a document.

Use the XMLSchemaReference property to return an XMLSchemaReference object for a ChildNodeSuggestion object. The following example inserts the suggested XML child element if the XML schema referenced is the SimpleSample schema.

Dim objSuggestion As XMLChildNodeSuggestion 
 
For Each objSuggestion In ActiveDocument _ 
 .ChildNodeSuggestions 
 
 If objSuggestion.XMLSchemaReference = "SimpleSample" Then 
 objSuggestion.Insert 
 End If 
 
Next
Note Note

The SimpleSample schema is included in the Smart Document Software Development Kit (SDK). For more information, refer to the Smart Document SDK on the Microsoft Developer Network (MSDN) Web site.

Show: