parseBoolLiteral function
Implementation
bool parseBoolLiteral(XmlElement element, String tagName) {
var v =
element.findElements(tagName).firstOrNull?.value?.toLowerCase().trim();
if (v == null) return false;
return ['yes', 'true'].contains(v);
}