XML DOM strictErrorCheckingプロパティ
Document オブジェクト
定義と使い方
strictErrorChecking プロパティは、エラーチェックを強制するかどうかを設定または返します。
false に設定した場合、実装は考えられるすべてのエラーケースをテストしません。このプロパティはデフォルトで true に設定されています。
構文
documentObject.strictErrorChecking
例
以下のコードスニペットは、loadXMLDoc()「」を xmlDoc に読み込み、エラーチェックを強制するかどうかを返します:
例
xmlDoc=loadXMLDoc("books.xml");
errCheck=xmlDoc.strictErrorChecking;
document.write(errCheck);
errCheck=xmlDoc.strictErrorChecking;
document.write(errCheck);
出力:
true
試してみる »
Document オブジェクト その他の拡張