SelectNodes()

XmlNode::SelectNodes(const String&) method

Selects a list of nodes matching the XPath expression.

SharedPtr<XmlNodeList> System::Xml::XmlNode::SelectNodes(const String &xpath)

Arguments

ParameterTypeDescription
xpathconst String&The XPath expression.

Return Value

An XmlNodeList containing a collection of nodes matching the XPath query.

XmlNode::SelectNodes(const String&, const SharedPtr<XmlNamespaceManager>&) method

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

SharedPtr<XmlNodeList> System::Xml::XmlNode::SelectNodes(const String &xpath, const SharedPtr<XmlNamespaceManager> &nsmgr)

Arguments

ParameterTypeDescription
xpathconst String&The XPath expression.
nsmgrconst SharedPtr<XmlNamespaceManager>&An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression.

Return Value

An XmlNodeList containing a collection of nodes matching the XPath query.

See Also