toXml static method

XmlElement toXml(
  1. ManifestNode node
)

Implementation

static XmlElement toXml(ManifestNode node) {
  List<XmlAttribute> attrs =
      node._props.map((e) => ManifestProp.toXml(e)).toList();
  List<XmlElement> childs =
      node._childs.map((e) => ManifestNode.toXml(e)).toList();

  XmlElement element = XmlElement(XmlName(node.title), attrs, childs);
  return element;
}