XML DOM strictErrorChecking 属性

定义和用法
strictErrorChecking 属性设置或返回是否强制进行错误检查。
当设置为 false 时,实现不会对每个可能的错误情况进行测试。该属性默认设置为 true。
语法
documentObject.strictErrorChecking
下面的代码片段使用 books.xml" 载入 xmlDoc 中,并返回是否强制进行错误检查:
实例代码
xmlDoc=loadXMLDoc("books.xml");
errCheck=xmlDoc.strictErrorChecking;
document.write(errCheck);
errCheck=xmlDoc.strictErrorChecking;
document.write(errCheck);
输出:
true
