toXml method

XmlNode toXml()

Implementation

XML.XmlNode toXml() {
  var x =  XML.XmlBuilder();
  x.element("scpd", nest: () {
    x.namespace("urn:schemas-upnp-org:service-1-0");
    x.element("specVersion", nest: () {
      x.element("major", nest: "1");
      x.element("minor", nest: "0");
    });

    x.element("actionList", nest: () {
      for (var action in actions) {
        action.applyToXml(x);
      }
    });
  });
  return x.buildDocument();
}