//跨浏览器获取xmlDom function getXMLDOM(xmlStr) { var xmlDom = null; if (typeof window.DOMParser != 'undefined') { xmlDom = (new DOMParser).parseFromString(xmlStr,'text/xml'); //创建xmlDom对象 var errors = xmlDom.getElementsByTagName('parsererror'); if(errors.…