XML DOM implementation 属性

定義と使用法

implementation 属性はドキュメントを処理する DOMImplementation オブジェクトを返します。

文法

documentObject.implementation

インスタンス

以下のコードは "books.xml" を xmlDoc にロードし、そのドキュメントを処理する DOMImplementation オブジェクトを返します:

var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
   if (this.readyState == 4 && this.status == 200) {
       myFunction(this);
   }
;
xhttp.open("GET", "books.xml", true);
xhttp.send();
function myFunction(xml) {
    var xmlDoc = xml.responseXML;
    document.getElementById("demo").innerHTML =
    xmlDoc.implementation;
}

自分で試してみる