title: Reading local XML file using javascript and display in html page
body: <p>I am trying to read xml file through javascript and display it in HTML page.</p>
  
  <p>I am using the following code.</p>
  
  <pre><code>function readxml() {
  alert("calledreadxml");
  var myXML, studentnode;    
  myXML= document.all("config.xml").XMLDocumentalert(myXML);
  studentnode = myXML.documentElement
  var string;
  var nxtnode;
  while(nxtnode)
  {
      string = "the value of "+nxtnode.nodeName+"is :"+ nxtnode.nodeValue+"\n";
      nxtnode = myXML.nextSibling;
  }
  }
  </code></pre>
  
  <p>this code is nt working.. can anyone please help</p>