code: function(xmlNode) {
          var noNativeXml, noXMLSerializer;
          if ((typeof Ti !== "undefined" && Ti !== null) && Ti.XML) {
            return Ti.XML.serializeToString(xmlNode);
          } else {
            try {
              return (new XMLSerializer()).serializeToString(xmlNode);
            } catch (_error) {
              noXMLSerializer = _error;
              try {
                return xmlNode.xml;
              } catch (_error) {
                noNativeXml = _error;
                throw new Error("No XML serialization support");
              }
            }
          }
        }
docs: Turns the provided XML DOM Node into an XML string using whatever
  native means of doing so is available
  
  @function serialize
  @param {DOM Node} The XML Node that is to be serialized
  
  @return {String} An XML string representation of the node and its children