System.Xml.XPath.XPathNavigator.Compile Method

Compiles the specified string that represents XPath expression and returns System.Xml.XPath.XPathExpression instance.

Syntax

public virtual XPathExpression Compile (string xpath)

Parameters

xpath
A string that represents XPath expression.

Returns

An System.Xml.XPath.XPathExpression instance that is the result of compilation.

Remarks

When the specified string did not conform to XPath expression syntax, stem.Xml.XPath.XPathException will be thrown.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0