getNamedChildren static method

List<XmlElement> getNamedChildren(
  1. XmlElement e,
  2. String name
)

Implementation

static List<XmlElement> getNamedChildren(XmlElement e, String name) {
  final List<XmlElement> res = <XmlElement>[];
  XmlElement? c = getFirstChild(e);
  while (c != null) {
    if (name == c.name.local || name == c.name.qualified) {
      res.add(c);
    }
    c = getNextSibling(c);
  }
  return res;
}