I have this simple code to query against the web service:-
$.get( url , function(xml) { var hello = $(xml).find("hello").text(); ... alert(xml); // displays [object XMLDocument] alert($(xml)); // displays [object Object] } ); This works fine, but I'm interested to see entire XML structure from the callback function for debugging purpose. I tried a few things, but I couldn't get it to display the XML. What I want to see is something like this:-
<stuff> <hello>bear</hello> </stuff> Any clue? Thanks.