XMLNode.NodeType Property
Returns a WdXMLNodeType constant that represents the type of node.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
ReadOnly Property NodeType As WdXMLNodeType
Get
'Usage
Dim instance As XMLNode
Dim value As WdXMLNodeType
value = instance.NodeType
WdXMLNodeType NodeType { get; }
Property Value
Type: Microsoft.Office.Interop.Word.WdXMLNodeType
Remarks
WdXMLNodeType can be one of the following wdXMLNodeType constants:
wdXMLNodeAttribute – Indicates an attribute node.
wdXMLNodeElement – Indicates an element node.
A XMLNode object can be either an XML element or an attribute of an element. Use the NodeType property to determine which type of node you are working with so that you don't attempt to perform invalid operations on the node. For example, the Attributes property applies only to element nodes, although it will appear in the list of available properties for the XMLNode object.