I want to know whether I can parse the 2 different xml documents in the jquery.ajax() call.
I am able to parse the 1 single xml file, but now I want to expand it to 2 xml doc. is that possible?
Here is what I am doing for 1 xml file
$.ajax({
type: "GET",
url: "sample5.xml",
dataType: "xml",
async: false,
error: function() {
alert("XML file not found");
},
success:function(xml) {
alert("Success");
};
});
Now here above the url has only sample5.xml, I want to load one more xml file say sample6.xml, can I do that? If yes then how?
Thanks for the help!
The easy way was to store the xml values in an object and then using the .parseXML() function in jquery. By this way I can parse N number of xml objects.