xpath method

  1. @experimental
Iterable<XmlNode> xpath(
  1. String expression, {
  2. Map<String, XPathValue> variables = const {},
  3. Map<String, XPathFunction> functions = const {},
})

Returns an iterable over the nodes matching the provided XPath expression.

Implementation

@experimental
Iterable<XmlNode> xpath(
  String expression, {
  Map<String, XPathValue> variables = const {},
  Map<String, XPathFunction> functions = const {},
}) => xpathEvaluate(
  expression,
  variables: variables,
  functions: functions,
).nodes;