toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
var attributes = <XmlAttribute>[];
if (name != null) {
attributes.add(XmlAttribute(XmlName('name'), name!));
}
var children_ = <XmlNode>[];
children_.addAll(interfaces.map((i) => i.toXml()));
children_.addAll(children.map((c) => c.toXml()));
return XmlElement(XmlName('node'), attributes, children_);
}