案例:DTD案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
<script type="text/javascript">
4
5
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
6
xmlDoc.async="false"
7
xmlDoc.validateOnParse="false"
8
xmlDoc.load("/example/dtde/note_dtd_error.xml")
9
10
document.write("<br />Error Code: ")
11
document.write(xmlDoc.parseError.errorCode)
12
document.write("<br />Error Reason: ")
13
document.write(xmlDoc.parseError.reason)
14
document.write("<br />Error Line: ")
15
document.write(xmlDoc.parseError.line)
16
17
</script>
18
</body>
19
</html>