System::Xml::XPath::XPathNavigator::SelectSingleNode method

XPathNavigator::SelectSingleNode(SharedPtr<XPathExpression>) method

Selects a single node in the XPathNavigator using the specified XPathExpression object.

virtual SharedPtr<XPathNavigator> System::Xml::XPath::XPathNavigator::SelectSingleNode(SharedPtr<XPathExpression> expression)
ParameterTypeDescription
expressionSharedPtr<XPathExpression>An XPathExpression object containing the compiled XPath query.

ReturnValue

An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise nullptr if there are no query results.

See Also

XPathNavigator::SelectSingleNode(String) method

Selects a single node in the XPathNavigator using the specified XPath query.

virtual SharedPtr<XPathNavigator> System::Xml::XPath::XPathNavigator::SelectSingleNode(String xpath)
ParameterTypeDescription
xpathStringA String representing an XPath expression.

ReturnValue

An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise, nullptr if there are no query results.

See Also

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

Selects a single node in the XPathNavigator object using the specified XPath query with the IXmlNamespaceResolver object specified to resolve namespace prefixes.

virtual SharedPtr<XPathNavigator> System::Xml::XPath::XPathNavigator::SelectSingleNode(String xpath, SharedPtr<IXmlNamespaceResolver> resolver)
ParameterTypeDescription
xpathStringA String representing an XPath expression.
resolverSharedPtr<IXmlNamespaceResolver>The IXmlNamespaceResolver object used to resolve namespace prefixes in the XPath query.

ReturnValue

An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise nullptr if there are no query results.

See Also