hasChildElements static method
Returns true if there is 1 or more child XmlElements
Implementation
static bool hasChildElements(XmlElement node) {
try {
var elements = node.children
.where((element) => element.nodeType == XmlNodeType.ELEMENT);
return elements.isNotEmpty;
} catch (e) {
Log().exception(e,
caller: 'xml.dart => bool hasChildElements({XmlElement node})');
}
return false;
}