XmlDocumentXPathExtensions.SelectNodes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
A collection of nodes that match the specified XPath expression.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor