Evaluate()

XPathNavigator::Evaluate(String) method

Evaluates the specified XPath expression and returns the typed result.

virtual SharedPtr<Object> System::Xml::XPath::XPathNavigator::Evaluate(String xpath)

Arguments

ParameterTypeDescription
xpathStringA string representing an XPath expression that can be evaluated.

Return Value

The result of the expression (Boolean, number, string, or node set). This maps to Boolean, Double, String, or XPathNodeIterator objects respectively.

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

Evaluates the specified XPath expression and returns the typed result, using the IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.

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

Arguments

ParameterTypeDescription
xpathStringA string representing an XPath expression that can be evaluated.
resolverSharedPtr<IXmlNamespaceResolver>The IXmlNamespaceResolver object used to resolve namespace prefixes in the XPath expression.

Return Value

The result of the expression (Boolean, number, string, or node set). This maps to Boolean, Double, String, or XPathNodeIterator objects respectively.

XPathNavigator::Evaluate(SharedPtr<XPathExpression>) method

Evaluates the XPathExpression and returns the typed result.

virtual SharedPtr<Object> System::Xml::XPath::XPathNavigator::Evaluate(SharedPtr<XPathExpression> expr)

Arguments

ParameterTypeDescription
exprSharedPtr<XPathExpression>An XPathExpression that can be evaluated.

Return Value

The result of the expression (Boolean, number, string, or node set). This maps to Boolean, Double, String, or XPathNodeIterator objects respectively.

XPathNavigator::Evaluate(SharedPtr<XPathExpression>, SharedPtr<XPathNodeIterator>) method

Uses the supplied context to evaluate the XPathExpression, and returns the typed result.

virtual SharedPtr<Object> System::Xml::XPath::XPathNavigator::Evaluate(SharedPtr<XPathExpression> expr, SharedPtr<XPathNodeIterator> context)

Arguments

ParameterTypeDescription
exprSharedPtr<XPathExpression>An XPathExpression that can be evaluated.
contextSharedPtr<XPathNodeIterator>An XPathNodeIterator that points to the selected node set that the evaluation is to be performed on.

Return Value

The result of the expression (Boolean, number, string, or node set). This maps to Boolean, Double, String, or XPathNodeIterator objects respectively.

See Also