Compile()

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)

Arguments

ParameterTypeDescription
xpathconst String&An XPath expression.

Return Value

An XPathExpression object.

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)

Arguments

ParameterTypeDescription
xpathconst String&An XPath expression.
nsResolverconst SharedPtr<IXmlNamespaceResolver>&An object that implements the IXmlNamespaceResolver interface for namespace resolution.

Return Value

An XPathExpression object.

See Also