Matches()

XPathNavigator::Matches(SharedPtr<XPathExpression>) method

Determines whether the current node matches the specified XPathExpression.

virtual bool System::Xml::XPath::XPathNavigator::Matches(SharedPtr<XPathExpression> expr)

Arguments

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

Return Value

true if the current node matches the XPathExpression; otherwise, false.

XPathNavigator::Matches(String) method

Determines whether the current node matches the specified XPath expression.

virtual bool System::Xml::XPath::XPathNavigator::Matches(String xpath)

Arguments

ParameterTypeDescription
xpathStringThe XPath expression.

Return Value

true if the current node matches the specified XPath expression; otherwise, false.

See Also