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