This documentation is archived and is not being maintained.

XPathNodeType Enumeration

Specifies the XPath node types that can be returned from the XPathNavigator.

For more information on XPath node types, see the Data Model section of the W3C XML Path Language (XPath) Version 1.0 Recommendation located at

[Visual Basic]
Public Enum XPathNodeType
public enum XPathNodeType
__value public enum XPathNodeType
enum XPathNodeType


Member name Description
All All node types.
Attribute An attribute in the node tree.
Comment A comment.
Element An element in the node tree.
Namespace A namespace node.
ProcessingInstruction A processing instruction. Important: This does not include XML declarations, which are not visible to the XPathNavigator.
Root The root of the node tree.
SignificantWhitespace A node with white space characters and xml:space set to preserve.
Text The text content of an element.
Whitespace A node with only white space characters and no significant white space.


Namespace: System.Xml.XPath

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Xml (in System.Xml.dll)

See Also

System.Xml.XPath Namespace | XPathNavigator.NodeType