Select()

XPathNavigator::Select(String) method

Selects a node set, using the specified XPath expression.

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::Select(String xpath)

Arguments

ParameterTypeDescription
xpathStringA String representing an XPath expression.

Return Value

An XPathNodeIterator pointing to the selected node set.

XPathNavigator::Select(String, SharedPtr<IXmlNamespaceResolver>) method

Selects a node set using the specified XPath expression with the IXmlNamespaceResolver object specified to resolve namespace prefixes.

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::Select(String xpath, SharedPtr<IXmlNamespaceResolver> resolver)

Arguments

ParameterTypeDescription
xpathStringA String representing an XPath expression.
resolverSharedPtr<IXmlNamespaceResolver>The IXmlNamespaceResolver object used to resolve namespace prefixes.

Return Value

An XPathNodeIterator that points to the selected node set.

XPathNavigator::Select(SharedPtr<XPathExpression>) method

Selects a node set using the specified XPathExpression.

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::Select(SharedPtr<XPathExpression> expr)

Arguments

ParameterTypeDescription
exprSharedPtr<XPathExpression>An XPathExpression object containing the compiled XPath query.

Return Value

An XPathNodeIterator that points to the selected node set.

See Also