XML DOM 구현 속성
❮ 문서 객체
예시
다음 코드 조각은 " 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;
}
산출:
[object DOMImplementation]
정의 및 사용
구현 속성은 문서를 처리하는 DOMImplementation 객체를 반환합니다.
통사론
documentObject.implementation
❮ 문서 객체