源代码 :
点击运行
<html> <body> <script> var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.load("note_error.xml"); document.write("Error code: " + xmlDoc.parseError.errorCode); document.write("<br>Error reason: " + xmlDoc.parseError.reason); document.write("<br>Error line: " + xmlDoc.parseError.line); </script> </body> </html>
运行结果