get static method
Gets the value of a attribute else a child element
Implementation
static String? get(
{XmlElement? node, String? tag, bool innerXmlAsText = false}) {
String? v;
if (node == null || tag == null) return v;
try {
v ??= attribute(node: node, tag: tag);
v ??= element(node: node, tag: tag, innerXmlAsText: innerXmlAsText);
} catch (e) {
v = null;
Log().exception(e,
caller: 'xml.dart => String get({XmlElement node, String tag})');
}
return v;
}