<html>
 <head>
  <title>MSXML Load Example</title>
  <script>
   function showXML(){
   alert("The document element of the document is named: \n" + objXMLDOM.documentElement.nodeName);
   }
  </script>
 </head>
<body>
<p>This example tests the <b>load()</b> method.</p>
 <script language="JScript" type="text/javascript">
  try {
   var objXMLDOM = new ActiveXObject("Msxml2.DOMDocument.3.0");
   objXMLDOM.load("c:\\BXML\\Ch11\\SimpleDoc.xml");
 }
  catch (e)
  {
    document.write("An exception was raised.");
  }
 </script>
 <br />
 <input type="button" value="Click here to show XML information" onclick="showXML()" />
 </body>
</html>