다음을 통해 공유


IXPath.Compile(String) Method

Definition

Compile an XPath expression for later evaluation.

[Android.Runtime.Register("compile", "(Ljava/lang/String;)Ljavax/xml/xpath/XPathExpression;", "GetCompile_Ljava_lang_String_Handler:Javax.Xml.Xpath.IXPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Javax.Xml.Xpath.IXPathExpression? Compile (string? expression);
[<Android.Runtime.Register("compile", "(Ljava/lang/String;)Ljavax/xml/xpath/XPathExpression;", "GetCompile_Ljava_lang_String_Handler:Javax.Xml.Xpath.IXPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Compile : string -> Javax.Xml.Xpath.IXPathExpression

Parameters

expression
String

The XPath expression.

Returns

Compiled XPath expression.

Attributes

Exceptions

If expression cannot be compiled.

If expression is null.

Remarks

Compile an XPath expression for later evaluation.

If expression contains any XPathFunctions, they must be available via the XPathFunctionResolver. An XPathExpressionException will be thrown if the XPathFunction cannot be resolved with the XPathFunctionResolver.

If expression is null, a NullPointerException is thrown.

Java documentation for javax.xml.xpath.XPath.compile(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to