I have this simple code for requesting a web service: -
$.get( url ,
function(xml) {
var hello = $(xml).find("hello").text();
...
alert(xml);
alert($(xml));
}
);
This works fine, but I'm interested in seeing the whole XML structure from a callback function for the purpose of debugging. I tried a few things, but I could not get it to display XML. I want to see something like this: -
<stuff>
<hello>bear</hello>
</stuff>
Any clue? Thank.
source
share