getNamedChild static method

XmlElement? getNamedChild(
  1. XmlElement? e,
  2. String name
)

Implementation

static XmlElement? getNamedChild(XmlElement? e, String name) {
  XmlElement? c = getFirstChild(e);
  while (c != null && name != c.name.local && name != c.name.qualified) {
    c = getNextSibling(c);
  }
  return c;
}