String? getAttribute(XmlElement xmlElement, String name) { return xmlElement.attributes .firstWhereOrNull((a) => a.name.qualified == name) ?.value; }