if (req.readyState == 4) { if (req.status == 200) { alert(req.responseText); }}
if (req.readyState == 4) { if (req.status == 200) { alert(req.responseXML); }}
if (req.readyState == 4) { if (req.status == 200) { alert(req.responseXML.find("Hello")); }}
I get all the file text if I write this:
I get "[object XMLDocument]" if I write this:
But than it does nothing if I try this:
Hello it's the tag I'm trying to find.
Any idea why is jQuery not finding my tag? How can I print all the xml file when I have XMLDocument Object (to see if it's empty).
Thanks in advance