createExpression method
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,
]);