filterElements function

Iterable<XmlElement> filterElements(
  1. Iterable<XmlNode> iterable,
  2. String name,
  3. String? namespace
)

Implementation

Iterable<XmlElement> filterElements(
  Iterable<XmlNode> iterable,
  String name,
  String? namespace,
) {
  final matcher = createNameMatcher(name, namespace);
  return iterable.whereType<XmlElement>().where(matcher);
}