I need to create a webpage where the user submits an XML file, which I use to dynamically update the page.
I am following a tutorial and have this piece of code in a javascript file:
function uploadFile(){
    var path = "processXML?action=process&id=" + escape(fileChooser.value);
    req = initRequest();
    req.open("GET", path, true);
    req.onreadystatechange = callback;
    req.send(null);
}
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.
How do I read/receive an XML file from the client so I can process it within my Java classes on the server?
 
     
    