Compile()

XPathNavigator::Compile(String) method

Compiles a string representing an XPath expression and returns an XPathExpression object.

virtual SharedPtr<XPathExpression> System::Xml::XPath::XPathNavigator::Compile(String xpath)

Arguments

ParameterTypeDescription
xpathStringA string representing an XPath expression.

Return Value

An XPathExpression object representing the XPath expression.

Exceptions

ExceptionDescription
ArgumentExceptionThe xpath parameter contains an XPath expression that is not valid.
XPathExceptionThe XPath expression is not valid.

See Also