XmlDocumentXPathExtensions.SelectNodes Method

Definition

Overloads

SelectNodes(XmlNode, String)

Selects a list of nodes matching the specified XPath expression.

SelectNodes(XmlNode, String, XmlNamespaceManager)

Selects a list of nodes matching the specified XPath expression. Any prefixes found in the XPath expression are resolved using the supplied namespace manager.

SelectNodes(XmlNode, String)

Selects a list of nodes matching the specified XPath expression.

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

Parameters

node
XmlNode

The node where the navigator is initially positioned.

xpath
String

The XPath expression to match.

Returns

XmlNodeList

A collection of nodes that match the specified XPath expression.

Applies to

SelectNodes(XmlNode, String, XmlNamespaceManager)

Selects a list of nodes matching the specified XPath expression. Any prefixes found in the XPath expression are resolved using the supplied namespace manager.

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

Parameters

node
XmlNode

The node where the navigator is initially positioned.

xpath
String

The XPath expression to match.

nsmgr
XmlNamespaceManager

A namespace manager to resolve XPath expression prefix namespaces.

Returns

XmlNodeList

A collection of nodes that match the specified XPath expression.

See also

Applies to