How to process xml returned from jsonp using jquery?
I use the following jquery to return an xml that resides on the same subdomain: $.getJSON(myurl, function(data) { debugger; alert(data); }); Now whenever I run this in firebug, I get a js error in firebug saying: Missing ; before statement. The data returned looks like this: <?xml version="1.0" encoding="utf-8"?> <string xmlns="somenamespace">...somedata...</string> The data I want is returned, but I am not sure how to use it. I need to access somedata , however I am not able to. Firebug doesnt even stop in the function. How do I proceed properly? It appears as if you're expecting XML to be