<!--load an XML document ("Note.xml") into the XML parser--
<scropt type = "Text/javascript" >
Funcion Parsexml ()
{
Try
{
xmldoc = new ActiveXObject ("Microsoft.XMLDOM");
}catch (e)
{
Try
{
xmldoc = Document.implementation.createDocument ("", "", null);
}catch (e)
{
Alter (E.MESSAGE);
Return
}
}
Xmldoc.async = false;
Xmldoc.load ("Note.xml");
document.getElementById ("to"). InnerHTML = Xmldoc.getelementsbytagname ("to") [0].childnodes[0].nodevalue;
Xmldoc.getelementbyid ("from"). InnerHTML = Xmldoc.getelementsbytagname ("from") [0].childnode[0].nodevalue;
Docuement.getelementbyid ("message"). InnerHTML = Xmldoc.getelementsbytagname ("message"). InnerHTML = Xmldoc.getelementtagname ("Body") [0].childnodes[0].nodevalue;
}
</script>
<body onload = "Parsexml ()" >
<p>
<b>to:</b><span id = "to" ></span><br/>
<b>From:</b> <span id = "from" ></span><br/>
<b>Message:</b> <span id = "Message" ></span>
</p>
</body>
<!--load an XML document ("Note.xml") into the XML parser-->