컴퓨터잡담

JavaScript XML 활용

by 디케 posted Feb 10, 2010
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄



* XML 파일 읽어 들이기
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.load("c:\\test.xml");


* 스트링으로된 XML 문서
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.loadXML("<test>하하하</test>");


* HTTP프로토콜에 실린 XML 읽어오기 
var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");
xmlhttp.open("GET", "http://neptune127.egloos.com/index.xml", true);
xmlhttp.send();


http://blog.naver.com/etwas0227/60006600922



http://khang.tistory.com/80?srchid=BR1http://khang.tistory.com/80









TAG •