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> children =
      node._children.map((e) => ManifestNode.toXml(e)).toList();

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