System::Xml::XPath::XPathExpression::Compile method

XPathExpression::Compile(const String&) method

Compiles the XPath expression specified and returns an XPathExpression object representing the XPath expression.

static SharedPtr<XPathExpression> System::Xml::XPath::XPathExpression::Compile(const String &xpath)
ParameterTypeDescription
xpathconst String&An XPath expression.

ReturnValue

An XPathExpression object.

See Also

XPathExpression::Compile(const String&, const SharedPtr<IXmlNamespaceResolver>&) method

Compiles the specified XPath expression, with the IXmlNamespaceResolver object specified for namespace resolution, and returns an XPathExpression object that represents the XPath expression.

static SharedPtr<XPathExpression> System::Xml::XPath::XPathExpression::Compile(const String &xpath, const SharedPtr<IXmlNamespaceResolver> &nsResolver)
ParameterTypeDescription
xpathconst String&An XPath expression.
nsResolverconst SharedPtr<IXmlNamespaceResolver>&An object that implements the IXmlNamespaceResolver interface for namespace resolution.

ReturnValue

An XPathExpression object.

See Also