findElements function
Finds the elements with the given name
in the given node
Implementation
Iterable<XmlElement>? findElements(
XmlNode? node,
String name, {
bool recursive = false,
String? namespace,
}) {
try {
if (recursive) {
return node?.findAllElements(name, namespace: namespace);
} else {
return node?.findElements(name, namespace: namespace);
}
} on Exception catch (e) {
log('Error occurred during finding XmlElements');
log(e.toString());
return null;
}
}