attributeValue function
Implementation
String? attributeValue(
final XmlElementNode element,
final String name, {
final String? namespace,
}) {
for (final XmlAttribute attr in element.attributes) {
if (attr.name.local != name) continue;
if (namespace != null && attr.name.namespaceUri != namespace) continue;
return attr.value;
}
return null;
}