firstElement function

XmlElement firstElement(
  1. XmlElement elem
)

Implementation

XmlElement firstElement(XmlElement elem) {
  for (XmlNode node in elem.children) {
    if(node is XmlElement) {
      return node as XmlElement;
    }
  }
  return null;
}