parseBoolLiteral function
Implementation
bool? parseBoolLiteral(XmlElement element, String tagName) {
final v = findElementOrNull(element, tagName)?.innerText.toLowerCase().trim();
if (v == null) return null;
return ['yes', 'true'].contains(v);
}