childElements function

List<XmlElement> childElements(
  1. XmlElement elem
)

Implementation

List<XmlElement> childElements(XmlElement elem) {
  List<XmlElement> result = List();
  for (XmlNode node in elem.children) {
    if(node is XmlElement) {
      result.add(node as XmlElement);
    }
  }
  return result;
}