findFirstElement function
XmlElement?
findFirstElement(})
Implementation
XmlElement? findFirstElement(
XmlNode? node,
String name, {
bool recursive = false,
String? namespace,
}) {
try {
return findElements(node, name, recursive: recursive, namespace: namespace)
?.first;
} on StateError {
return null;
}
}