XML DOM strictErrorChecking property

Document object reference manual

Definition and usage

The strictErrorChecking property can set or return whether to enforce error checking (error-checking).

After setting to false, the implementation will not test each possible error case. This property is set to true by default.

Syntax:

documentObject.strictErrorChecking

Example

In all examples, we will use the XML file books.xml, as well as the JavaScript function loadXMLDoc().

The following code snippet can return whether error checking is set to enforce:

xmlDoc=loadXMLDoc("books.xml");
var errCheck=xmlDoc.strictErrorChecking;
document.write(errCheck);

Output:

true

Document object reference manual