topical media & game development

talk show tell print

basic-xml-11-MSXMLLoad.htm / htm



  <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>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.