XmlDocumentXPathExtensions.SelectNodes 方法

定義

多載

名稱 Description
SelectNodes(XmlNode, String)

選取與指定 XPath 表達式相符的節點清單。

SelectNodes(XmlNode, String, XmlNamespaceManager)

選取與指定 XPath 表達式相符的節點清單。 XPath 表達式中發現的任何前綴,皆可透過提供的命名空間管理器解析。

SelectNodes(XmlNode, String)

來源:
XmlDocumentXPathExtensions.cs

選取與指定 XPath 表達式相符的節點清單。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XmlNodeList ^ SelectNodes(System::Xml::XmlNode ^ node, System::String ^ xpath);
public static System.Xml.XmlNodeList SelectNodes(this System.Xml.XmlNode node, string xpath);
static member SelectNodes : System.Xml.XmlNode * string -> System.Xml.XmlNodeList
<Extension()>
Public Function SelectNodes (node As XmlNode, xpath As String) As XmlNodeList

參數

node
XmlNode

導航員最初所在的節點。

xpath
String

XPath 的表情也相呼應。

傳回

一組與指定 XPath 表達式相符的節點。

適用於

SelectNodes(XmlNode, String, XmlNamespaceManager)

來源:
XmlDocumentXPathExtensions.cs

選取與指定 XPath 表達式相符的節點清單。 XPath 表達式中發現的任何前綴,皆可透過提供的命名空間管理器解析。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XmlNodeList ^ SelectNodes(System::Xml::XmlNode ^ node, System::String ^ xpath, System::Xml::XmlNamespaceManager ^ nsmgr);
public static System.Xml.XmlNodeList SelectNodes(this System.Xml.XmlNode node, string xpath, System.Xml.XmlNamespaceManager nsmgr);
static member SelectNodes : System.Xml.XmlNode * string * System.Xml.XmlNamespaceManager -> System.Xml.XmlNodeList
<Extension()>
Public Function SelectNodes (node As XmlNode, xpath As String, nsmgr As XmlNamespaceManager) As XmlNodeList

參數

node
XmlNode

導航員最初所在的節點。

xpath
String

XPath 的表情也相呼應。

nsmgr
XmlNamespaceManager

一個用來解析 XPath 表達式前綴命名空間的命名空間管理器。

傳回

一組與指定 XPath 表達式相符的節點。

適用於