getAttribute method

String? getAttribute(
  1. XmlElement xmlElement,
  2. String name
)

Implementation

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