XPathEvaluator.createExpression()
.Evaluates the XPath expression on the given node or document.
Node
. A Node
representing the context to use for evaluating the expression.number
. Specifies the type of result to be returned by evaluating the expression. This must be one of the XPathResult.Constants
.XPathResult
. Allows to specify a result object which may be reused and returned by this method. If this is specified as null
or the implementation does not reuse the specified result, a new result object will be returned.XPathResult