xpathEvaluate method

  1. @experimental
XPathSequence<Object> xpathEvaluate(
  1. String expression, {
  2. Map<String, Object>? variables,
  3. Map<XmlName, XPathFunction>? functions,
})

Returns the value resulting from evaluating the given XPath expression.

The returned value is of type XPathSequence, which is an iterable of Objects.

Implementation

@experimental
XPathSequence xpathEvaluate(
  String expression, {
  Map<String, Object>? variables,
  Map<XmlName, XPathFunction>? functions,
}) => XPathContext.canonical(
  this,
).copy(variables: variables, functions: functions).evaluate(expression);