//读取XML文件 function loadXML(xmlFile) { var xmlDoc; if (window.ActiveXObject) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = false; xmlDoc.load(xmlFile); } else if (document.implementation && document.implementation.createDocument) { xmlDoc = document.implementation.createDocument("", "", null); xmlDoc.async = false; xmlDoc.load(xmlFile); } else { alert('您的浏览器不支持该系统脚本!'); } return xmlDoc; } //输出XML文件 function outXML(filename){ var xmlDoc = loadXML(filename); var x = xmlDoc.getElementsByTagName("properties"); var text=x[0].outerHTML.replace(/