Compiles the given XPath expression and returns an object representing that expression.
[Visual Basic] Overridable Public Function Compile( _ ByVal xpathexpr As String _ ) As Object [C#] public virtual object Compile( string xpathexpr ); [C++] public: virtual Object* Compile( String* xpathexpr ); [JScript] public function Compile( xpathexpr : String ) : Object;
The XPath expression as an object.
Exception Type | Condition |
---|---|
ArgumentException | The xpathexpr param contains an invalid XPath expression. |
An XPath expression is evaluated to yield one of the following return types:
The expressions that return a node-set can be used in the Select methods. The expressions that return a boolean, number, or string can be used in Evaluate. The rules on valid expressions for the Matches method are specific to that method.
XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace