I want to read a client side XML file uploaded via upload file dialog. I am trying to read like below. I dont know how to proceed. Please help me on this..
// Here I want to read the uploaded xml
function(xml) {
alert('Successfully loaded');
$(xml).find('name').each(function(){
var qid = $(this).text();
});
}
My requirement is reading the XML at client side itself without uploading it to the server.
here is the fiddle..
Thanks
If the XML file has been uploaded to your server you can execute a AJAX request to read it, assuming it is publicly accessible:
If the XML file is not publicly accessible once it’s been uploaded, you’ll need to use a server-side technology such as PHP or ASP.Net to read it.