title: How do I get/read xml file on the client?
body: <p>I need to create a webpage where the user submits an XML file, which I use to dynamically update the page.</p>
  
  <p>I am following a tutorial and have this piece of code in a javascript file:</p>
  
  <pre><code>function uploadFile(){
      var path = "processXML?action=process&amp;id=" + escape(fileChooser.value);
      req = initRequest();
      req.open("GET", path, true);
      req.onreadystatechange = callback;
      req.send(null);
  }
  </code></pre>
  
  <p>I also have the URLpattern /processXMl set in a Java Servlet. Although I am learning something new, it's not what I am trying to achieve. The open() method is specifying a file on the server.</p>
  
  <p>How do I read/receive an XML file from the client so I can process it within my Java classes on the server?</p>