<script type="text/javascript">
if (window.XMLHttpRequest)
xmlhttp=new XMLHttpRequest();
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET","/example/xmle/note.xml",false);
xmlDoc=xmlhttp.responseXML;
var x=xmlDoc.documentElement.childNodes;
for (var i=0;i<x.length;i++)
document.write(x[i].nodeName + ": ");
document.write(x[i].childNodes[0].nodeValue);
document.write("<br />");