title: XML parse in Javascript
body: <p>Trying to use an xml in javascript.  The emailtest.xml needs to be taken from the same folder as emailtest.js and emailtest.html.  I am not sure how to use the parser.  Is there a right way to address a xml in js?</p>
  <p>//emailtest.js</p>
  <pre><code>function window_open(){
      parser= new DOMparser();
      email = parser.parseFromString(&quot;emailtest.xml&quot;, &quot;text/xml);
      textbox1.text=email(1,1)
      
  }
  </code></pre>
  <p>//emailtest.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0 encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;&gt;
  &lt;data-set xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  &lt;table&gt;
      &lt;0&gt;
          &lt;fname&gt;John&lt;/fname&gt;
          &lt;lname&gt;Doe&lt;/lname&gt;
          &lt;email&gt;doejohn@gmail.com&lt;/email&gt;
      &lt;/0&gt;
      &lt;1&gt;
          &lt;fname&gt;Jane&lt;/fname&gt;
          &lt;lname&gt;Doe&lt;/lname&gt;
          &lt;email&gt;doejane@yahoo.com&lt;/email&gt;
      &lt;/1&gt;
  &lt;/table&gt;
  </code></pre>