<script type="text/javascript">
if (window.ActiveXObject)
xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.load("/example/xdom/note.xml")
else if (document.implementation && document.implementation.createDocument)
xmlDoc= document.implementation.createDocument("","",null)
xmlDoc.load("/example/xdom/note.xml");
xmlDoc.onload=displaymessage
document.write("Your browser cannot handle this script")
function displaymessage()
document.write(xmlDoc.getElementsByTagName("body")[0].firstChild.nodeValue)
<body onload="loadXML()">