XPathNavigator XPathNavigator XPathNavigator XPathNavigator Class

定義

提供游標模型來巡覽及編輯 XML 資料。Provides a cursor model for navigating and editing XML data.

public ref class XPathNavigator abstract : System::Xml::XPath::XPathItem, ICloneable, System::Xml::IXmlNamespaceResolver, System::Xml::XPath::IXPathNavigable
public abstract class XPathNavigator : System.Xml.XPath.XPathItem, ICloneable, System.Xml.IXmlNamespaceResolver, System.Xml.XPath.IXPathNavigable
type XPathNavigator = class
    inherit XPathItem
    interface ICloneable
    interface IXPathNavigable
    interface IXmlNamespaceResolver
Public MustInherit Class XPathNavigator
Inherits XPathItem
Implements ICloneable, IXmlNamespaceResolver, IXPathNavigable
繼承
XPathNavigatorXPathNavigatorXPathNavigatorXPathNavigator
衍生
實作

備註

命名System.Xml.XPath空間中的XPathNavigator類別是抽象類別,它會定義資料指標模型,以導覽和編輯 XML 資訊專案做為 XQuery 1.0 和 XPath 2.0 資料模型的實例。The XPathNavigator class in the System.Xml.XPath namespace is an abstract class which defines a cursor model for navigating and editing XML information items as instances of the XQuery 1.0 and XPath 2.0 Data Model.

物件是從執行IXPathNavigable介面的類別建立,例如XPathDocumentXmlDocument類別。 XPathNavigatorAn XPathNavigator object is created from a class that implements the IXPathNavigable interface such as the XPathDocument and XmlDocument classes. XPathNavigator物件所建立XPathDocument的物件是唯讀的, XPathNavigator而且可以編輯XmlDocument物件所建立的物件。XPathNavigator objects created by XPathDocument objects are read-only while XPathNavigator objects created by XmlDocument objects can be edited. 物件的唯讀或可編輯狀態是CanEdit使用XPathNavigator類別的屬性來決定。 XPathNavigatorAn XPathNavigator object's read-only or editable status is determined using the CanEdit property of the XPathNavigator class.

如需使用 XPath 資料模型處理 XML 資料的詳細資訊,請參閱使用 Xpath 資料模型處理 Xml 資料主題。For more information about processing XML data using the XPath data model, see the Process XML Data Using the XPath Data Model topic.

重要

由於使用XPathNavigator類別(例如XPathException類別)而引發的例外狀況,可能包含不應在未受信任的案例中公開的機密資訊。Exceptions raised as a result of using the XPathNavigator class, such as the XPathException class, may contain sensitive information that should not be exposed in untrusted scenarios. 應該適當地處理例外狀況,如此一來,就不會在未受信任的案例中公開此機密資訊。Exceptions should be properly handled so that this sensitive information is not exposed in untrusted scenarios.

給繼承者的注意事項

當您繼承自XPathNavigator類別時,必須覆寫下列成員:When you inherit from the XPathNavigator class, you must override the following members:

建構函式

XPathNavigator() XPathNavigator() XPathNavigator() XPathNavigator()

初始化 XPathNavigator 類別的新執行個體。Initializes a new instance of the XPathNavigator class.

屬性

BaseURI BaseURI BaseURI BaseURI

在衍生類別中覆寫時,取得目前節點的基底 (Base) URI。When overridden in a derived class, gets the base URI for the current node.

CanEdit CanEdit CanEdit CanEdit

取得值,指出 XPathNavigator 是否可以編輯底層 XML 資料。Gets a value that indicates whether the XPathNavigator can edit the underlying XML data.

HasAttributes HasAttributes HasAttributes HasAttributes

取得值,指出目前節點是否具有任何屬性。Gets a value that indicates whether the current node has any attributes.

HasChildren HasChildren HasChildren HasChildren

取得值,指出目前節點是否具有任何子節點。Gets a value that indicates whether the current node has any child nodes.

InnerXml InnerXml InnerXml InnerXml

取得或設定表示目前節點之子節點的標記。Gets or sets the markup representing the child nodes of the current node.

IsEmptyElement IsEmptyElement IsEmptyElement IsEmptyElement

在衍生類別中覆寫時,取得值,指出目前的節點是否為空元素,且沒有結尾元素標記。When overridden in a derived class, gets a value that indicates whether the current node is an empty element without an end element tag.

IsNode IsNode IsNode IsNode

取得值,指出目前的節點是否表示 XPath 節點。Gets a value that indicates if the current node represents an XPath node.

LocalName LocalName LocalName LocalName

在衍生類別中覆寫時,取得目前節點的 Name,而不含任何命名空間前置詞。When overridden in a derived class, gets the Name of the current node without any namespace prefix.

Name Name Name Name

在衍生類別中覆寫時,取得目前節點的限定名稱。When overridden in a derived class, gets the qualified name of the current node.

NamespaceURI NamespaceURI NamespaceURI NamespaceURI

在衍生類別中覆寫時,取得目前節點的命名空間 URI。When overridden in a derived class, gets the namespace URI of the current node.

NameTable NameTable NameTable NameTable

在衍生類別中覆寫時,取得 XmlNameTableXPathNavigatorWhen overridden in a derived class, gets the XmlNameTable of the XPathNavigator.

NavigatorComparer NavigatorComparer NavigatorComparer NavigatorComparer

取得 IEqualityComparer,用於 XPathNavigator 物件的相等比較。Gets an IEqualityComparer used for equality comparison of XPathNavigator objects.

NodeType NodeType NodeType NodeType

在衍生類別中覆寫時,取得目前節點的 XPathNodeTypeWhen overridden in a derived class, gets the XPathNodeType of the current node.

OuterXml OuterXml OuterXml OuterXml

取得或設定標記,表示目前節點和其子節點的開頭和結尾標記。Gets or sets the markup representing the opening and closing tags of the current node and its child nodes.

Prefix Prefix Prefix Prefix

在衍生類別中覆寫時,取得與目前節點相關的命名空間前置詞。When overridden in a derived class, gets the namespace prefix associated with the current node.

SchemaInfo SchemaInfo SchemaInfo SchemaInfo

取得在結構描述驗證之後已指派給目前節點的結構描述資訊。Gets the schema information that has been assigned to the current node as a result of schema validation.

TypedValue TypedValue TypedValue TypedValue

取得目前的節點,當做最適當的 .NET Framework 型別的 Boxed 物件。Gets the current node as a boxed object of the most appropriate .NET Framework type.

UnderlyingObject UnderlyingObject UnderlyingObject UnderlyingObject

XPathNavigator 實作所使用,此實作可以提供存放區上的「虛擬化」XML 檢視,或是提供基礎物件的存取。Used by XPathNavigator implementations which provide a "virtualized" XML view over a store, to provide access to underlying objects.

Value Value Value Value

在衍生類別中遭到覆寫時,取得該項目的字串值。When overridden in a derived class, gets the string value of the item.

ValueAsBoolean ValueAsBoolean ValueAsBoolean ValueAsBoolean

取得目前的節點值做為 BooleanGets the current node's value as a Boolean.

ValueAsDateTime ValueAsDateTime ValueAsDateTime ValueAsDateTime

取得目前的節點值做為 DateTimeGets the current node's value as a DateTime.

ValueAsDouble ValueAsDouble ValueAsDouble ValueAsDouble

取得目前的節點值做為 DoubleGets the current node's value as a Double.

ValueAsInt ValueAsInt ValueAsInt ValueAsInt

取得目前的節點值做為 Int32Gets the current node's value as an Int32.

ValueAsLong ValueAsLong ValueAsLong ValueAsLong

取得目前的節點值做為 Int64Gets the current node's value as an Int64.

ValueType ValueType ValueType ValueType

取得目前節點的 .NET Framework TypeGets the .NET Framework Type of the current node.

XmlLang XmlLang XmlLang XmlLang

取得目前節點的 xml:lang 範圍。Gets the xml:lang scope for the current node.

XmlType XmlType XmlType XmlType

取得目前節點的 XmlSchemaType 資訊。Gets the XmlSchemaType information for the current node.

方法

AppendChild() AppendChild() AppendChild() AppendChild()

傳回 XmlWriter 物件,此物件用來在目前節點的子節點清單結尾建立一或多個新的子節點。Returns an XmlWriter object used to create one or more new child nodes at the end of the list of child nodes of the current node.

AppendChild(String) AppendChild(String) AppendChild(String) AppendChild(String)

使用指定的 XML 資料字串,在目前節點的子節點清單結尾建立新的子節點。Creates a new child node at the end of the list of child nodes of the current node using the XML data string specified.

AppendChild(XmlReader) AppendChild(XmlReader) AppendChild(XmlReader) AppendChild(XmlReader)

使用指定 XmlReader 物件的 XML 內容,在目前節點的子節點清單結尾建立新的子節點。Creates a new child node at the end of the list of child nodes of the current node using the XML contents of the XmlReader object specified.

AppendChild(XPathNavigator) AppendChild(XPathNavigator) AppendChild(XPathNavigator) AppendChild(XPathNavigator)

使用指定 XPathNavigator 中的節點,在目前節點的子節點清單結尾建立新的子節點。Creates a new child node at the end of the list of child nodes of the current node using the nodes in the XPathNavigator specified.

AppendChildElement(String, String, String, String) AppendChildElement(String, String, String, String) AppendChildElement(String, String, String, String) AppendChildElement(String, String, String, String)

使用命名空間前置詞、區域名稱以及有指定值的命名空間 URI,在目前節點的子節點清單結尾建立新的子項目節點。Creates a new child element node at the end of the list of child nodes of the current node using the namespace prefix, local name and namespace URI specified with the value specified.

CheckValidity(XmlSchemaSet, ValidationEventHandler) CheckValidity(XmlSchemaSet, ValidationEventHandler) CheckValidity(XmlSchemaSet, ValidationEventHandler) CheckValidity(XmlSchemaSet, ValidationEventHandler)

請驗證 XPathNavigator 中的 XML 資料確實有符合所提供的 XML 結構描述定義語言 (XSD) 結構描述。Verifies that the XML data in the XPathNavigator conforms to the XML Schema definition language (XSD) schema provided.

Clone() Clone() Clone() Clone()

在衍生類別中覆寫時,請在與此 XPathNavigator 相同的節點上建立新的 XPathNavigatorWhen overridden in a derived class, creates a new XPathNavigator positioned at the same node as this XPathNavigator.

ComparePosition(XPathNavigator) ComparePosition(XPathNavigator) ComparePosition(XPathNavigator) ComparePosition(XPathNavigator)

比較目前 XPathNavigator 的位置與指定 XPathNavigator 的位置。Compares the position of the current XPathNavigator with the position of the XPathNavigator specified.

Compile(String) Compile(String) Compile(String) Compile(String)

編譯表示 XPath 運算式的字串,並傳回 XPathExpression 物件。Compiles a string representing an XPath expression and returns an XPathExpression object.

CreateAttribute(String, String, String, String) CreateAttribute(String, String, String, String) CreateAttribute(String, String, String, String) CreateAttribute(String, String, String, String)

使用命名空間前置詞、區域名稱以及有指定值的命名空間 URI,在目前的項目節點上建立屬性節點。Creates an attribute node on the current element node using the namespace prefix, local name and namespace URI specified with the value specified.

CreateAttributes() CreateAttributes() CreateAttributes() CreateAttributes()

傳回 XmlWriter 物件,此物件是用來在目前的項目上建立新的屬性。Returns an XmlWriter object used to create new attributes on the current element.

CreateNavigator() CreateNavigator() CreateNavigator() CreateNavigator()

傳回 XPathNavigator 的複本。Returns a copy of the XPathNavigator.

DeleteRange(XPathNavigator) DeleteRange(XPathNavigator) DeleteRange(XPathNavigator) DeleteRange(XPathNavigator)

刪除從目前節點到指定節點的某範圍之同層級節點。Deletes a range of sibling nodes from the current node to the node specified.

DeleteSelf() DeleteSelf() DeleteSelf() DeleteSelf()

刪除目前的節點和它的子節點。Deletes the current node and its child nodes.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Evaluate(String) Evaluate(String) Evaluate(String) Evaluate(String)

評估指定的 XPath 運算式,並傳回具型別的結果。Evaluates the specified XPath expression and returns the typed result.

Evaluate(String, IXmlNamespaceResolver) Evaluate(String, IXmlNamespaceResolver) Evaluate(String, IXmlNamespaceResolver) Evaluate(String, IXmlNamespaceResolver)

評估指定的 XPath 運算式,並傳回具型別的結果,透過的方式是利用指定的 IXmlNamespaceResolver 物件來解析 XPath 運算式中的命名空間前置詞。Evaluates the specified XPath expression and returns the typed result, using the IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.

Evaluate(XPathExpression) Evaluate(XPathExpression) Evaluate(XPathExpression) Evaluate(XPathExpression)

評估 XPathExpression,並傳回具型別的結果。Evaluates the XPathExpression and returns the typed result.

Evaluate(XPathExpression, XPathNodeIterator) Evaluate(XPathExpression, XPathNodeIterator) Evaluate(XPathExpression, XPathNodeIterator) Evaluate(XPathExpression, XPathNodeIterator)

使用提供的內容來評估 XPathExpression,並傳回具型別的結果。Uses the supplied context to evaluate the XPathExpression, and returns the typed result.

GetAttribute(String, String) GetAttribute(String, String) GetAttribute(String, String) GetAttribute(String, String)

取得具有指定的區域名稱和命名空間 URI 的屬性值。Gets the value of the attribute with the specified local name and namespace URI.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetNamespace(String) GetNamespace(String) GetNamespace(String) GetNamespace(String)

傳回對應至指定區域名稱之命名空間節點的值。Returns the value of the namespace node corresponding to the specified local name.

GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope)

傳回目前節點範圍中的命名空間。Returns the in-scope namespaces of the current node.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
InsertAfter() InsertAfter() InsertAfter() InsertAfter()

傳回 XmlWriter 物件,此物件用來在目前選取的節點之後建立新的同層級節點。Returns an XmlWriter object used to create a new sibling node after the currently selected node.

InsertAfter(String) InsertAfter(String) InsertAfter(String) InsertAfter(String)

使用指定的 XML 字串,在目前選取的節點之後建立新的同層級節點。Creates a new sibling node after the currently selected node using the XML string specified.

InsertAfter(XmlReader) InsertAfter(XmlReader) InsertAfter(XmlReader) InsertAfter(XmlReader)

使用指定 XmlReader 物件的 XML 內容,在目前選取的節點之後建立新的同層級節點。Creates a new sibling node after the currently selected node using the XML contents of the XmlReader object specified.

InsertAfter(XPathNavigator) InsertAfter(XPathNavigator) InsertAfter(XPathNavigator) InsertAfter(XPathNavigator)

使用指定 XPathNavigator 物件中的節點,在目前選取的節點之後建立新的同層級節點。Creates a new sibling node after the currently selected node using the nodes in the XPathNavigator object specified.

InsertBefore() InsertBefore() InsertBefore() InsertBefore()

傳回 XmlWriter 物件,此物件用來在目前選取的節點之前建立新的同層級節點。Returns an XmlWriter object used to create a new sibling node before the currently selected node.

InsertBefore(String) InsertBefore(String) InsertBefore(String) InsertBefore(String)

使用指定的 XML 字串,在目前選取的節點之前建立新的同層級節點。Creates a new sibling node before the currently selected node using the XML string specified.

InsertBefore(XmlReader) InsertBefore(XmlReader) InsertBefore(XmlReader) InsertBefore(XmlReader)

使用指定 XmlReader 物件的 XML 內容,在目前選取的節點之前建立新的同層級節點。Creates a new sibling node before the currently selected node using the XML contents of the XmlReader object specified.

InsertBefore(XPathNavigator) InsertBefore(XPathNavigator) InsertBefore(XPathNavigator) InsertBefore(XPathNavigator)

使用指定 XPathNavigator 中的節點,在目前選取的節點之前建立新的同層級節點。Creates a new sibling node before the currently selected node using the nodes in the XPathNavigator specified.

InsertElementAfter(String, String, String, String) InsertElementAfter(String, String, String, String) InsertElementAfter(String, String, String, String) InsertElementAfter(String, String, String, String)

使用命名空間前置詞、區域名稱以及有指定值的命名空間 URI,在目前的節點之後建立新的同層級項目。Creates a new sibling element after the current node using the namespace prefix, local name and namespace URI specified, with the value specified.

InsertElementBefore(String, String, String, String) InsertElementBefore(String, String, String, String) InsertElementBefore(String, String, String, String) InsertElementBefore(String, String, String, String)

使用命名空間前置詞、區域名稱以及有指定值的命名空間 URI,在目前的節點之前建立新的同層級項目。Creates a new sibling element before the current node using the namespace prefix, local name, and namespace URI specified, with the value specified.

IsDescendant(XPathNavigator) IsDescendant(XPathNavigator) IsDescendant(XPathNavigator) IsDescendant(XPathNavigator)

判斷指定的 XPathNavigator 是否為目前 XPathNavigator 的子代 (Descendant)。Determines whether the specified XPathNavigator is a descendant of the current XPathNavigator.

IsSamePosition(XPathNavigator) IsSamePosition(XPathNavigator) IsSamePosition(XPathNavigator) IsSamePosition(XPathNavigator)

在衍生類別中覆寫時,請判斷目前的 XPathNavigator 是否和指定的 XPathNavigator 位在相同的位置。When overridden in a derived class, determines whether the current XPathNavigator is at the same position as the specified XPathNavigator.

LookupNamespace(String) LookupNamespace(String) LookupNamespace(String) LookupNamespace(String)

取得指定前置詞的命名空間 URI。Gets the namespace URI for the specified prefix.

LookupPrefix(String) LookupPrefix(String) LookupPrefix(String) LookupPrefix(String)

取得為指定命名空間 URI 宣告的前置詞。Gets the prefix declared for the specified namespace URI.

Matches(String) Matches(String) Matches(String) Matches(String)

判斷目前的節點是否符合指定的 XPath 運算式。Determines whether the current node matches the specified XPath expression.

Matches(XPathExpression) Matches(XPathExpression) Matches(XPathExpression) Matches(XPathExpression)

判斷目前節點是否符合指定的 XPathExpressionDetermines whether the current node matches the specified XPathExpression.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MoveTo(XPathNavigator) MoveTo(XPathNavigator) MoveTo(XPathNavigator) MoveTo(XPathNavigator)

在衍生類別中覆寫時,將 XPathNavigator 移至與指定 XPathNavigator 相同的位置上。When overridden in a derived class, moves the XPathNavigator to the same position as the specified XPathNavigator.

MoveToAttribute(String, String) MoveToAttribute(String, String) MoveToAttribute(String, String) MoveToAttribute(String, String)

XPathNavigator 移至具有相符的區域名稱和命名空間 URI 的屬性。Moves the XPathNavigator to the attribute with the matching local name and namespace URI.

MoveToChild(String, String) MoveToChild(String, String) MoveToChild(String, String) MoveToChild(String, String)

XPathNavigator 移到具有指定區域名稱和命名空間 URI 的子節點。Moves the XPathNavigator to the child node with the local name and namespace URI specified.

MoveToChild(XPathNodeType) MoveToChild(XPathNodeType) MoveToChild(XPathNodeType) MoveToChild(XPathNodeType)

XPathNavigator 移到指定 XPathNodeType 的子節點。Moves the XPathNavigator to the child node of the XPathNodeType specified.

MoveToFirst() MoveToFirst() MoveToFirst() MoveToFirst()

XPathNavigator 移至目前節點的第一個同層級節點。Moves the XPathNavigator to the first sibling node of the current node.

MoveToFirstAttribute() MoveToFirstAttribute() MoveToFirstAttribute() MoveToFirstAttribute()

在衍生類別中覆寫時,將 XPathNavigator 移至目前節點的第一個屬性。When overridden in a derived class, moves the XPathNavigator to the first attribute of the current node.

MoveToFirstChild() MoveToFirstChild() MoveToFirstChild() MoveToFirstChild()

在衍生類別中覆寫時,將 XPathNavigator 移至目前節點的第一個子節點。When overridden in a derived class, moves the XPathNavigator to the first child node of the current node.

MoveToFirstNamespace() MoveToFirstNamespace() MoveToFirstNamespace() MoveToFirstNamespace()

XPathNavigator 移至目前節點的第一個命名空間節點。Moves the XPathNavigator to first namespace node of the current node.

MoveToFirstNamespace(XPathNamespaceScope) MoveToFirstNamespace(XPathNamespaceScope) MoveToFirstNamespace(XPathNamespaceScope) MoveToFirstNamespace(XPathNamespaceScope)

在衍生類別中覆寫時,將 XPathNavigator 移至符合指定 XPathNamespaceScope 的第一個命名空間節點。When overridden in a derived class, moves the XPathNavigator to the first namespace node that matches the XPathNamespaceScope specified.

MoveToFollowing(String, String) MoveToFollowing(String, String) MoveToFollowing(String, String) MoveToFollowing(String, String)

會根據文件順序,將 XPathNavigator 移到具有指定區域名稱和命名空間 URI 的項目。Moves the XPathNavigator to the element with the local name and namespace URI specified in document order.

MoveToFollowing(String, String, XPathNavigator) MoveToFollowing(String, String, XPathNavigator) MoveToFollowing(String, String, XPathNavigator) MoveToFollowing(String, String, XPathNavigator)

會根據文件順序,將 XPathNavigator 移到指定界限之區域名稱和指定命名空間 URI 的項目。Moves the XPathNavigator to the element with the local name and namespace URI specified, to the boundary specified, in document order.

MoveToFollowing(XPathNodeType) MoveToFollowing(XPathNodeType) MoveToFollowing(XPathNodeType) MoveToFollowing(XPathNodeType)

會根據文件順序,將 XPathNavigator 移至下列指定 XPathNodeType 的項目。Moves the XPathNavigator to the following element of the XPathNodeType specified in document order.

MoveToFollowing(XPathNodeType, XPathNavigator) MoveToFollowing(XPathNodeType, XPathNavigator) MoveToFollowing(XPathNodeType, XPathNavigator) MoveToFollowing(XPathNodeType, XPathNavigator)

會根據文件順序,將 XPathNavigator 移至下列指定界限之指定 XPathNodeType 的項目。Moves the XPathNavigator to the following element of the XPathNodeType specified, to the boundary specified, in document order.

MoveToId(String) MoveToId(String) MoveToId(String) MoveToId(String)

在衍生類別中覆寫時,移至具有類型 ID 的屬性之節點 (此類型的值符合指定的 String)。When overridden in a derived class, moves to the node that has an attribute of type ID whose value matches the specified String.

MoveToNamespace(String) MoveToNamespace(String) MoveToNamespace(String) MoveToNamespace(String)

XPathNavigator 移至具有指定命名空間前置詞的命名空間節點。Moves the XPathNavigator to the namespace node with the specified namespace prefix.

MoveToNext() MoveToNext() MoveToNext() MoveToNext()

在衍生類別中覆寫時,將 XPathNavigator 移至目前節點的下一個同層級節點。When overridden in a derived class, moves the XPathNavigator to the next sibling node of the current node.

MoveToNext(String, String) MoveToNext(String, String) MoveToNext(String, String) MoveToNext(String, String)

XPathNavigator 移到具有指定區域名稱和命名空間 URI 的下一個同層級節點。Moves the XPathNavigator to the next sibling node with the local name and namespace URI specified.

MoveToNext(XPathNodeType) MoveToNext(XPathNodeType) MoveToNext(XPathNodeType) MoveToNext(XPathNodeType)

XPathNavigator 移至目前節點中符合指定 XPathNodeType 的下一個同層級節點。Moves the XPathNavigator to the next sibling node of the current node that matches the XPathNodeType specified.

MoveToNextAttribute() MoveToNextAttribute() MoveToNextAttribute() MoveToNextAttribute()

在衍生類別中覆寫時,將 XPathNavigator 移至下一個屬性。When overridden in a derived class, moves the XPathNavigator to the next attribute.

MoveToNextNamespace() MoveToNextNamespace() MoveToNextNamespace() MoveToNextNamespace()

XPathNavigator 移至下一個命名空間節點。Moves the XPathNavigator to the next namespace node.

MoveToNextNamespace(XPathNamespaceScope) MoveToNextNamespace(XPathNamespaceScope) MoveToNextNamespace(XPathNamespaceScope) MoveToNextNamespace(XPathNamespaceScope)

在衍生類別中覆寫時,將 XPathNavigator 移至符合指定 XPathNamespaceScope 的下一個命名空間節點。When overridden in a derived class, moves the XPathNavigator to the next namespace node matching the XPathNamespaceScope specified.

MoveToParent() MoveToParent() MoveToParent() MoveToParent()

在衍生類別中覆寫時,將 XPathNavigator 移至目前節點的父節點。When overridden in a derived class, moves the XPathNavigator to the parent node of the current node.

MoveToPrevious() MoveToPrevious() MoveToPrevious() MoveToPrevious()

在衍生類別中覆寫時,將 XPathNavigator 移至目前節點的上一個同層級節點。When overridden in a derived class, moves the XPathNavigator to the previous sibling node of the current node.

MoveToRoot() MoveToRoot() MoveToRoot() MoveToRoot()

XPathNavigator 移至目前節點所屬的根節點。Moves the XPathNavigator to the root node that the current node belongs to.

PrependChild() PrependChild() PrependChild() PrependChild()

傳回 XmlWriter 物件,此物件用來在目前節點的子節點清單開頭建立新的子節點。Returns an XmlWriter object used to create a new child node at the beginning of the list of child nodes of the current node.

PrependChild(String) PrependChild(String) PrependChild(String) PrependChild(String)

使用指定的 XML 字串,在目前節點的子節點清單開頭建立新的子節點。Creates a new child node at the beginning of the list of child nodes of the current node using the XML string specified.

PrependChild(XmlReader) PrependChild(XmlReader) PrependChild(XmlReader) PrependChild(XmlReader)

使用指定 XmlReader 物件的 XML 內容,在目前節點的子節點清單開頭建立新的子節點。Creates a new child node at the beginning of the list of child nodes of the current node using the XML contents of the XmlReader object specified.

PrependChild(XPathNavigator) PrependChild(XPathNavigator) PrependChild(XPathNavigator) PrependChild(XPathNavigator)

使用指定 XPathNavigator 物件中的節點,在目前節點的子節點清單開頭建立新的子節點。Creates a new child node at the beginning of the list of child nodes of the current node using the nodes in the XPathNavigator object specified.

PrependChildElement(String, String, String, String) PrependChildElement(String, String, String, String) PrependChildElement(String, String, String, String) PrependChildElement(String, String, String, String)

使用命名空間前置詞、區域名稱以及有指定值的命名空間 URI,在目前節點的子節點清單開頭建立新的子項目。Creates a new child element at the beginning of the list of child nodes of the current node using the namespace prefix, local name, and namespace URI specified with the value specified.

ReadSubtree() ReadSubtree() ReadSubtree() ReadSubtree()

傳回 XmlReader 物件,此物件包含目前的節點和它的子節點。Returns an XmlReader object that contains the current node and its child nodes.

ReplaceRange(XPathNavigator) ReplaceRange(XPathNavigator) ReplaceRange(XPathNavigator) ReplaceRange(XPathNavigator)

取代從目前節點到指定節點的某範圍之同層級節點。Replaces a range of sibling nodes from the current node to the node specified.

ReplaceSelf(String) ReplaceSelf(String) ReplaceSelf(String) ReplaceSelf(String)

將目前的節點取代為指定字串的內容。Replaces the current node with the content of the string specified.

ReplaceSelf(XmlReader) ReplaceSelf(XmlReader) ReplaceSelf(XmlReader) ReplaceSelf(XmlReader)

將目前的節點取代為指定 XmlReader 物件的內容。Replaces the current node with the contents of the XmlReader object specified.

ReplaceSelf(XPathNavigator) ReplaceSelf(XPathNavigator) ReplaceSelf(XPathNavigator) ReplaceSelf(XPathNavigator)

將目前的節點取代為指定 XPathNavigator 物件的內容。Replaces the current node with the contents of the XPathNavigator object specified.

Select(String) Select(String) Select(String) Select(String)

使用指定的 XPath 運算式來選取節點集。Selects a node set, using the specified XPath expression.

Select(String, IXmlNamespaceResolver) Select(String, IXmlNamespaceResolver) Select(String, IXmlNamespaceResolver) Select(String, IXmlNamespaceResolver)

使用指定的 XPath 運算式並搭配用來解析命名空間前置詞的 IXmlNamespaceResolver,以選取節點集。Selects a node set using the specified XPath expression with the IXmlNamespaceResolver object specified to resolve namespace prefixes.

Select(XPathExpression) Select(XPathExpression) Select(XPathExpression) Select(XPathExpression)

使用指定的 XPathExpression 來選取節點集。Selects a node set using the specified XPathExpression.

SelectAncestors(String, String, Boolean) SelectAncestors(String, String, Boolean) SelectAncestors(String, String, Boolean) SelectAncestors(String, String, Boolean)

選取目前節點中,所有具有指定區域名稱和命名空間 URI 的祖系節點。Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.

SelectAncestors(XPathNodeType, Boolean) SelectAncestors(XPathNodeType, Boolean) SelectAncestors(XPathNodeType, Boolean) SelectAncestors(XPathNodeType, Boolean)

選取目前節點中,所有具有相符 XPathNodeType 的祖系節點。Selects all the ancestor nodes of the current node that have a matching XPathNodeType.

SelectChildren(String, String) SelectChildren(String, String) SelectChildren(String, String) SelectChildren(String, String)

選取目前節點中,所有具有指定區域名稱和命名空間 URI 的子節點。Selects all the child nodes of the current node that have the local name and namespace URI specified.

SelectChildren(XPathNodeType) SelectChildren(XPathNodeType) SelectChildren(XPathNodeType) SelectChildren(XPathNodeType)

選取目前節點中,所有具有相符之 XPathNodeType 的子節點。Selects all the child nodes of the current node that have the matching XPathNodeType.

SelectDescendants(String, String, Boolean) SelectDescendants(String, String, Boolean) SelectDescendants(String, String, Boolean) SelectDescendants(String, String, Boolean)

選取目前節點中,所有具有指定區域名稱和命名空間 URI 的子代節點。Selects all the descendant nodes of the current node with the local name and namespace URI specified.

SelectDescendants(XPathNodeType, Boolean) SelectDescendants(XPathNodeType, Boolean) SelectDescendants(XPathNodeType, Boolean) SelectDescendants(XPathNodeType, Boolean)

選取目前節點中,所有具有相符 XPathNodeType 的子代節點。Selects all the descendant nodes of the current node that have a matching XPathNodeType.

SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String)

使用指定的 XPath 查詢,於 XPathNavigator 中選取單一節點。Selects a single node in the XPathNavigator using the specified XPath query.

SelectSingleNode(String, IXmlNamespaceResolver) SelectSingleNode(String, IXmlNamespaceResolver) SelectSingleNode(String, IXmlNamespaceResolver) SelectSingleNode(String, IXmlNamespaceResolver)

使用指定的 XPath 查詢並搭配指定的 XPathNavigator 物件,在 IXmlNamespaceResolver 物件中選取單一節點,以解析命名空間前置詞。Selects a single node in the XPathNavigator object using the specified XPath query with the IXmlNamespaceResolver object specified to resolve namespace prefixes.

SelectSingleNode(XPathExpression) SelectSingleNode(XPathExpression) SelectSingleNode(XPathExpression) SelectSingleNode(XPathExpression)

使用指定的 XPathNavigator 物件,於 XPathExpression 中選取單一節點。Selects a single node in the XPathNavigator using the specified XPathExpression object.

SetTypedValue(Object) SetTypedValue(Object) SetTypedValue(Object) SetTypedValue(Object)

設定目前節點的型別值。Sets the typed value of the current node.

SetValue(String) SetValue(String) SetValue(String) SetValue(String)

設定目前節點的值。Sets the value of the current node.

ToString() ToString() ToString() ToString()

取得目前節點的文字值。Gets the text value of the current node.

ValueAs(Type, IXmlNamespaceResolver) ValueAs(Type, IXmlNamespaceResolver) ValueAs(Type, IXmlNamespaceResolver) ValueAs(Type, IXmlNamespaceResolver)

取得目前節點的值做為指定的 Type,透過的方式是使用指定的 IXmlNamespaceResolver 物件來解析命名空間前置詞。Gets the current node's value as the Type specified, using the IXmlNamespaceResolver object specified to resolve namespace prefixes.

WriteSubtree(XmlWriter) WriteSubtree(XmlWriter) WriteSubtree(XmlWriter) WriteSubtree(XmlWriter)

將目前節點和其子節點的資料流導向指定的 XmlWriter 物件。Streams the current node and its child nodes to the XmlWriter object specified.

明確介面實作

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

建立 XPathNavigator 物件的新複本。Creates a new copy of the XPathNavigator object.

適用於

另請參閱