extractXmlChild function

XmlElement? extractXmlChild(
  1. XmlElement elem,
  2. String name
)

Implementation

XmlElement? extractXmlChild(XmlElement elem, String name) {
  if (name == elem.localName) {
    return elem;
  }
  return elem.findElements(name).firstOrNull;
}