Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​Xml.​XPath.​XPathNodeType

Assembly: System.Xml.ReaderWriter

Defines the XPath node types that can be returned from the <see cref="T:System.Xml.XPath.XPathNavigator" /> class.

Values

Root
The root node of the XML document or node tree.
Element
An element, such as <c>&lt;element&gt;</c> .
Attribute
An attribute, such as <c>id='123'</c> .
Namespace
A namespace, such as <c>xmlns="namespace"</c> .
Text
The text content of a node. Equivalent to the Document Object Model (DOM) Text and CDATA node types. Contains at least one character.
SignificantWhitespace
A node with white space characters and <c>xml:space</c> set to <c>preserve</c> .
Whitespace
A node with only white space characters and no significant white space. White space characters are <c>#x20</c> , <c>#x9</c> , <c>#xD</c> , or <c>#xA</c> .
ProcessingInstruction
A processing instruction, such as <c>&lt;?pi test?&gt;</c> . This does not include XML declarations, which are not visible to the <see cref="T:System.Xml.XPath.XPathNavigator" /> class.
Comment
A comment, such as <c>&lt;!-- my comment --&gt;</c> .
All
Any of the <see cref="T:System.Xml.XPath.XPathNodeType" /> node types.