Re: [jQuery] XML print all nodes ( html() )

2010-01-09 Thread John Arrowwood
console.log( $('').append( $(itemsXML).clone() ).html() ) See if that works. On Sat, Jan 9, 2010 at 7:27 PM, Shane wrote: > Is there a way to print out the structure of a jQuery xml element... > heres some code > > $(xml).find("item").each(function(){ >if(myid == $(this).find("id").text

[jQuery] XML print all nodes ( html() )

2010-01-09 Thread Shane
Is there a way to print out the structure of a jQuery xml element... heres some code $(xml).find("item").each(function(){ if(myid == $(this).find("id").text()){ itemsXML = $(this).html() <-- trying to do something like this } } i would like itemsXML to conta