evaluate method

XPathResult evaluate(
  1. String expression,
  2. Node contextNode, [
  3. XPathNSResolver? resolver,
  4. int type,
  5. XPathResult? result,
])

The evaluate() method of the Document interface selects elements based on the XPath expression given in parameters.

XPath expressions can be evaluated on both HTML and XML documents.

Implementation

external XPathResult evaluate(
  String expression,
  Node contextNode, [
  XPathNSResolver? resolver,
  int type,
  XPathResult? result,
]);