toXml method
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final csv = this.csv;
final json = this.json;
final $children = <_s.XmlNode>[
if (csv != null) csv.toXml('CSV'),
if (json != null) json.toXml('JSON'),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}