Attribute.fromXml constructor

Attribute.fromXml(
  1. XmlElement elem
)

Implementation

factory Attribute.fromXml(_s.XmlElement elem) {
  return Attribute(
    name: _s.extractXmlStringValue(elem, 'Name')!,
    value: _s.extractXmlStringValue(elem, 'Value')!,
    alternateNameEncoding:
        _s.extractXmlStringValue(elem, 'AlternateNameEncoding'),
    alternateValueEncoding:
        _s.extractXmlStringValue(elem, 'AlternateValueEncoding'),
  );
}