Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML DOM strictErrorChecking Property

XML DOM strictErrorChecking Property


Document Object Reference Document Object


Definition and Usage

The strictErrorChecking property sets or returns whether error checking is enforced.

When set to false, the implementation does not test for every possible error condition. This property is set to true by default.

Syntax

documentObject.strictErrorChecking


Example

The following code snippet uses loadXMLDoc() to load "books.xml" Load into xmlDoc, and return whether error checking is enforced:

Example

xmlDoc=loadXMLDoc("books.xml");

errCheck=xmlDoc.strictErrorChecking;

document.write(errCheck);

Output:

true

Try it »


Document Object Reference Document Object