Share via


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)

Usage

Dim xMLNode1 As XMLNode

Dim returnValue As WdXMLNodeType
returnValue = xMLNode1.NodeType

Syntax

ReadOnly Property NodeType() As WdXMLNodeType
WdXMLNodeType NodeType {get;}
property WdXMLNodeType^ NodeType{
    WdXMLNodeType^ get();
}
public WdXMLNodeType get_NodeType();
function get NodeType() : 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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

XMLNode Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

XMLNode Members