createExpression method

XPathExpression createExpression(
  1. String expression, [
  2. XPathNSResolver? resolver
])

This method compiles an XPathExpression which can then be used for (repeated) evaluations.

You must call this method on the same document that you run the expression against.

Implementation

external XPathExpression createExpression(
  String expression, [
  XPathNSResolver? resolver,
]);