可以自己写代码
1 <script type="text/javascript"> 2 var xmldoc = new ActiveXObject("Microsoft.XMLDOM"); 3 xmldoc.validateOnParse="true"; 4 xmldoc.load("instance1.xml");//修改这个就可以了 5 var reson = xmldoc.parseError.reason; 6 var line = xmldoc.parseError.line; 7 document.write(reson+"<br/>"); 8 document.write(line); 9 </script>