element static method
Returns the value of a child XmlElement element
Implementation
static String? element(
{required XmlElement node,
required String tag,
bool innerXmlAsText = false}) {
String? v;
try {
XmlElement? child = getChildElement(node: node, tag: tag);
//child ??= getChildElement(node: node, tag: tag.toLowerCase());
//child ??= getChildElement(node: node, tag: tag.toUpperCase());
if (child != null) v = getText(child, innerXmlAsText: innerXmlAsText);
} catch (e) {
v = null;
Log().exception(e,
caller: 'xml.dart => String element({XmlElement node, String tag})');
}
return v;
}