console.log( $('<div/>').append( $(itemsXML).clone() ).html() )
See if that works.
On Sat, Jan 9, 2010 at 7:27 PM, Shane <[email protected]> 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()){
> itemsXML = $(this).html() <------ trying to do something
> like this
> }
> }
>
> i would like itemsXML to contain the entire stucture of the xml rather
> than the jquery object. thanks
>
--
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/