9.15 XPathNodeType
Prev | 9 Data Types and Structures | Next

## 9.15 XPathNodeType

An enumeration of the types of results that may come back from an XPath query.

### Note

This enumeration is compatible with a similar enumeration utilized in the Microsoft .NET framework.

- Root - the result is the top level node of the XML Infoset (i.e., the result is the entire XML Infoset).

- Element - the result is an XML Element within the XML Infoset (i.e., the result is a subset of the XML Infoset).

- Attribute - the result is an XML Attribute of an XML Element within the XML Infoset.

- Text - the result is the textual content of an XML Element within the XML Infoset. Equivalent to the Document Object Model (DOM) Text and CDATA node types. Contains at least one character.

- SignificantWhitespace - the result is the content of an XML Element within the XML Infoset, where the content consists only of significant whitespace (e.g., xml:space was set to preserve). White space code points are SPACE (U0020), TAB (U0009), CARRIAGE RETURN (U000D), or LINE FEED (U000A) of ISO 10646 (Unicode).

- Whitespace - the result is the content of an XML Element within the XML Infoset, where the content consists only of whitespace. White space code points are SPACE (U0020), TAB (U0009), CARRIAGE RETURN (U000D), or LINE FEED (U000A) of ISO 10646 (Unicode).

- Comment - the result is a comment within the XML Infoset.

- Namespace - the result is a namespace directive within the XML Infoset.

- ProcessingInstruction - the result is a processing instruction within the XML Infoset.

- All - the result may contain any of the types defined in XPathNodeType.

Prev | Up | Next
9.14 XPathNodeInfoset | Home | 10 Data Exchange Model Conventions