通过


XmlDocumentXPathExtensions.SelectNodes 方法

定义

重载

名称 说明
SelectNodes(XmlNode, String)

选择与指定的 XPath 表达式匹配的节点列表。

SelectNodes(XmlNode, String, XmlNamespaceManager)

选择与指定的 XPath 表达式匹配的节点列表。 使用提供的命名空间管理器解析 XPath 表达式中找到的任何前缀。

SelectNodes(XmlNode, String)

Source:
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)

Source:
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 表达式匹配的节点集合。

适用于