xpath method

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

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

Implementation

@experimental
Iterable<XmlNode> xpath(
  String expression, {
  Map<String, Object>? variables,
  Map<XmlName, XPathFunction>? functions,
}) => xpathEvaluate(
  expression,
  variables: variables,
  functions: functions,
).whereType<XmlNode>();