XPathNodeType 列舉

定義

定義 XPath 節點型別,該型別可從 XPathNavigator 類別傳回。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
繼承
XPathNodeType

欄位

All 9

任何 XPathNodeType 節點型別。Any of the XPathNodeType node types.

Attribute 2

屬性,例如 id='123'An attribute, such as id='123'.

Comment 8

註解,例如 <!-- my comment -->A comment, such as <!-- my comment -->

Element 1

元素,例如 <element>An element, such as <element>.

Namespace 3

命名空間,例如 xmlns="namespace"A namespace, such as xmlns="namespace".

ProcessingInstruction 7

處理表示,例如 <?pi test?>A processing instruction, such as <?pi test?>. 它不包括 XML 宣告,其對 XPathNavigator 類別不可見。This does not include XML declarations, which are not visible to the XPathNavigator class.

Root 0

XML 文件或節點樹狀目錄的根節點。The root node of the XML document or node tree.

SignificantWhitespace 5

有空白字元的節點,且節點的 xml:space 設為 preserveA node with white space characters and xml:space set to preserve.

Text 4

節點的文字內容。The text content of a node. 文件物件模型 (DOM) 文字和 CDATA 節點型別的相同對應項。Equivalent to the Document Object Model (DOM) Text and CDATA node types. 包含至少一個字元。Contains at least one character.

Whitespace 6

只具有泛空白字元,但沒有顯著性泛空白字元的節點。A node with only white space characters and no significant white space. 空白字元為 #x20#x9#xD#xAWhite space characters are #x20, #x9, #xD, or #xA.

適用於