XMLNode Interface
Represents a single XML element applied to a document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
<GuidAttribute("09760240-0B89-49F7-A79D-479F24723F56")> _
Public Interface XMLNode
'Usage
Dim instance As XMLNode
[GuidAttribute("09760240-0B89-49F7-A79D-479F24723F56")]
public interface XMLNode
Remarks
Each XML element that has been applied to a document is displayed as a node in a tree view control in the XML Structure task pane. Each node in the tree view is an instance of an XMLNode object. The hierarchy in the tree view indicates whether a node contains child nodes.
Use the Item property of the XMLNodes collection to return an individual XMLNode object. Use the Validate method to verify that an XML element is valid according to the applied schemas and that any required child elements exist and are in the required order. Once you run the Validate method, use the ValidationStatus property to verify whether an element is valid, and use the ValidationErrorText property to display information about what the user needs to do to make the document conform to the XML schema rules.