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; }