/*
YUI 3.11.0 (build d549e5c)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatype-xml-parse/datatype-xml-parse.js']) {
   __coverage__['build/datatype-xml-parse/datatype-xml-parse.js'] = {"path":"build/datatype-xml-parse/datatype-xml-parse.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0,0]},"f":{"1":0,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":49}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":11},"end":{"line":21,"column":26}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":60,"column":13}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":18}},"3":{"start":{"line":13,"column":0},"end":{"line":51,"column":3}},"4":{"start":{"line":22,"column":8},"end":{"line":22,"column":26}},"5":{"start":{"line":23,"column":8},"end":{"line":44,"column":9}},"6":{"start":{"line":24,"column":12},"end":{"line":43,"column":13}},"7":{"start":{"line":25,"column":16},"end":{"line":29,"column":17}},"8":{"start":{"line":26,"column":24},"end":{"line":26,"column":71}},"9":{"start":{"line":27,"column":24},"end":{"line":27,"column":45}},"10":{"start":{"line":28,"column":24},"end":{"line":28,"column":45}},"11":{"start":{"line":32,"column":16},"end":{"line":42,"column":17}},"12":{"start":{"line":33,"column":20},"end":{"line":35,"column":21}},"13":{"start":{"line":34,"column":24},"end":{"line":34,"column":83}},"14":{"start":{"line":36,"column":20},"end":{"line":39,"column":21}},"15":{"start":{"line":37,"column":24},"end":{"line":37,"column":72}},"16":{"start":{"line":38,"column":24},"end":{"line":38,"column":45}},"17":{"start":{"line":46,"column":8},"end":{"line":47,"column":9}},"18":{"start":{"line":49,"column":8},"end":{"line":49,"column":22}},"19":{"start":{"line":54,"column":0},"end":{"line":54,"column":41}},"20":{"start":{"line":56,"column":0},"end":{"line":56,"column":24}},"21":{"start":{"line":57,"column":0},"end":{"line":57,"column":23}}},"branchMap":{"1":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":8}},{"start":{"line":23,"column":8},"end":{"line":23,"column":8}}]},"2":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":16},"end":{"line":25,"column":16}},{"start":{"line":25,"column":16},"end":{"line":25,"column":16}}]},"3":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":20},"end":{"line":33,"column":20}},{"start":{"line":33,"column":20},"end":{"line":33,"column":20}}]},"4":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":20},"end":{"line":36,"column":20}},{"start":{"line":36,"column":20},"end":{"line":36,"column":20}}]},"5":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":8},"end":{"line":46,"column":8}},{"start":{"line":46,"column":8},"end":{"line":46,"column":8}}]},"6":{"line":46,"type":"binary-expr","locations":[{"start":{"line":46,"column":13},"end":{"line":46,"column":32}},{"start":{"line":46,"column":38},"end":{"line":46,"column":73}},{"start":{"line":46,"column":79},"end":{"line":46,"column":128}}]}},"code":["(function () { YUI.add('datatype-xml-parse', function (Y, NAME) {","","/**"," * Parse XML submodule."," *"," * @module datatype-xml"," * @submodule datatype-xml-parse"," * @for XML"," */","","var LANG = Y.Lang;","","Y.mix(Y.namespace(\"XML\"), {","    /**","     * Converts data to type XMLDocument.","     *","     * @method parse","     * @param data {String} Data to convert.","     * @return {XMLDoc} XML Document.","     */","    parse: function(data) {","        var xmlDoc = null;","        if(LANG.isString(data)) {","            try {","                if(!LANG.isUndefined(ActiveXObject)) {","                        xmlDoc = new ActiveXObject(\"Microsoft.XMLDOM\");","                        xmlDoc.async = false;","                        xmlDoc.loadXML(data);","                }","            }","            catch(ee) {","                try {","                    if (!LANG.isUndefined(DOMParser)) {","                        xmlDoc = new DOMParser().parseFromString(data, \"text/xml\");","                    }","                    if (!LANG.isUndefined(Windows.Data.Xml.Dom)) {","                        xmlDoc = new Windows.Data.Xml.Dom.XmlDocument();","                        xmlDoc.loadXml(data);","                    }","                }","                catch(e) {","                }","            }","        }","        ","        if( (LANG.isNull(xmlDoc)) || (LANG.isNull(xmlDoc.documentElement)) || (xmlDoc.documentElement.nodeName === \"parsererror\") ) {","        }","        ","        return xmlDoc;","    }","});","","// Add Parsers shortcut","Y.namespace(\"Parsers\").xml = Y.XML.parse;","","Y.namespace(\"DataType\");","Y.DataType.XML = Y.XML;","","","}, '3.11.0');","","}());"]};
}
var __cov_aDcHjqsnP3l5XnJlFVoVOw = __coverage__['build/datatype-xml-parse/datatype-xml-parse.js'];
__cov_aDcHjqsnP3l5XnJlFVoVOw.s['1']++;YUI.add('datatype-xml-parse',function(Y,NAME){__cov_aDcHjqsnP3l5XnJlFVoVOw.f['1']++;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['2']++;var LANG=Y.Lang;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['3']++;Y.mix(Y.namespace('XML'),{parse:function(data){__cov_aDcHjqsnP3l5XnJlFVoVOw.f['2']++;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['4']++;var xmlDoc=null;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['5']++;if(LANG.isString(data)){__cov_aDcHjqsnP3l5XnJlFVoVOw.b['1'][0]++;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['6']++;try{__cov_aDcHjqsnP3l5XnJlFVoVOw.s['7']++;if(!LANG.isUndefined(ActiveXObject)){__cov_aDcHjqsnP3l5XnJlFVoVOw.b['2'][0]++;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['8']++;xmlDoc=new ActiveXObject('Microsoft.XMLDOM');__cov_aDcHjqsnP3l5XnJlFVoVOw.s['9']++;xmlDoc.async=false;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['10']++;xmlDoc.loadXML(data);}else{__cov_aDcHjqsnP3l5XnJlFVoVOw.b['2'][1]++;}}catch(ee){__cov_aDcHjqsnP3l5XnJlFVoVOw.s['11']++;try{__cov_aDcHjqsnP3l5XnJlFVoVOw.s['12']++;if(!LANG.isUndefined(DOMParser)){__cov_aDcHjqsnP3l5XnJlFVoVOw.b['3'][0]++;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['13']++;xmlDoc=new DOMParser().parseFromString(data,'text/xml');}else{__cov_aDcHjqsnP3l5XnJlFVoVOw.b['3'][1]++;}__cov_aDcHjqsnP3l5XnJlFVoVOw.s['14']++;if(!LANG.isUndefined(Windows.Data.Xml.Dom)){__cov_aDcHjqsnP3l5XnJlFVoVOw.b['4'][0]++;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['15']++;xmlDoc=new Windows.Data.Xml.Dom.XmlDocument();__cov_aDcHjqsnP3l5XnJlFVoVOw.s['16']++;xmlDoc.loadXml(data);}else{__cov_aDcHjqsnP3l5XnJlFVoVOw.b['4'][1]++;}}catch(e){}}}else{__cov_aDcHjqsnP3l5XnJlFVoVOw.b['1'][1]++;}__cov_aDcHjqsnP3l5XnJlFVoVOw.s['17']++;if((__cov_aDcHjqsnP3l5XnJlFVoVOw.b['6'][0]++,LANG.isNull(xmlDoc))||(__cov_aDcHjqsnP3l5XnJlFVoVOw.b['6'][1]++,LANG.isNull(xmlDoc.documentElement))||(__cov_aDcHjqsnP3l5XnJlFVoVOw.b['6'][2]++,xmlDoc.documentElement.nodeName==='parsererror')){__cov_aDcHjqsnP3l5XnJlFVoVOw.b['5'][0]++;}else{__cov_aDcHjqsnP3l5XnJlFVoVOw.b['5'][1]++;}__cov_aDcHjqsnP3l5XnJlFVoVOw.s['18']++;return xmlDoc;}});__cov_aDcHjqsnP3l5XnJlFVoVOw.s['19']++;Y.namespace('Parsers').xml=Y.XML.parse;__cov_aDcHjqsnP3l5XnJlFVoVOw.s['20']++;Y.namespace('DataType');__cov_aDcHjqsnP3l5XnJlFVoVOw.s['21']++;Y.DataType.XML=Y.XML;},'3.11.0');
