code: function(xmlString) {
          var error, parser, xmlDoc;
          if ((typeof Ti !== "undefined" && Ti !== null) && Ti.XML) {
            try {
              xmlDoc = Ti.XML.parseString(xmlString);
            } catch (_error) {
              error = _error;
              xmlDoc = null;
            }
            return xmlDoc;
          } else if (window.DOMParser != null) {
            try {
              parser = new window.DOMParser();
              xmlDoc = parser.parseFromString(xmlString, "text/xml");
            } catch (_error) {
              error = _error;
              xmlDoc = null;
            }
            return xmlDoc;
          } else if (window.ActiveXObject && window.GetObject) {
            xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
            xmlDoc.async = "false";
            try {
              xmlDoc.loadXML(xmlString);
            } catch (_error) {
              error = _error;
              xmlDoc = null;
            }
            return xmlDoc;
          } else {
            throw new Error("No XML parser available");
          }
        }
docs: Turns the provided XML string into an XML DOM Document using whatever
  native means of doing so is available
  
  @function parse
  @param {String} xmlString A valid string containing XML
  
  @return {DOM}   An XML DOM Document instance