오로시 2022. 10. 24. 00:08

 

 

DOM  is a standard way for accesssing and manipulating documents.

It presents an doucument as a tree-structure.

 

 

HTML DOM 

 

document.getElementById("demo").innerHTML = "Hello"

 

demo 라는 아이디를 가진 HTML의 inner 내용을 "Hello"로 바꾼다.

 

--> JavaScript 로 연결됨

 

 

XML DOM

 

All XML elements can be accessed through the XML DOM.

 

txt = xmlDoc.getElementsByTagName("title")[0].childNodes[0].nodeValue