XPathNodeType XPathNodeType XPathNodeType XPathNodeType Enum


Defines the XPath node types that can be returned from the XPathNavigator class.

public enum class XPathNodeType
public enum XPathNodeType
type XPathNodeType = 
Public Enum XPathNodeType


All All All All 9

Any of the XPathNodeType node types.

Attribute Attribute Attribute Attribute 2

An attribute, such as id='123'.

Comment Comment Comment Comment 8

A comment, such as <!-- my comment -->

Element Element Element Element 1

An element, such as <element>.

Namespace Namespace Namespace Namespace 3

A namespace, such as xmlns="namespace".

ProcessingInstruction ProcessingInstruction ProcessingInstruction ProcessingInstruction 7

A processing instruction, such as <?pi test?>. This does not include XML declarations, which are not visible to the XPathNavigator class.

Root Root Root Root 0

The root node of the XML document or node tree.

SignificantWhitespace SignificantWhitespace SignificantWhitespace SignificantWhitespace 5

A node with white space characters and xml:space set to preserve.

Text Text Text Text 4

The text content of a node. Equivalent to the Document Object Model (DOM) Text and CDATA node types. Contains at least one character.

Whitespace Whitespace Whitespace Whitespace 6

A node with only white space characters and no significant white space. White space characters are #x20, #x9, #xD, or #xA.

Applies to