Try it without the clone().  And try it without the '/' after '<div'.  Also,
try doing console.log( itemsXML ) and see what gets output.  It is possible
that your problem is that the variable does not contain what you think it
does.

On Sat, Jan 9, 2010 at 9:26 PM, Shane <wishiwasmiss...@gmail.com> wrote:

> no go.
>
> On Jan 9, 10:56 pm, John Arrowwood <jarro...@gmail.com> wrote:
> > console.log( $('<div/>').append( $(itemsXML).clone() ).html() )
> >
> > See if that works.
> >
> > On Sat, Jan 9, 2010 at 7:27 PM, Shane <wishiwasmiss...@gmail.com> 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/
>



-- 
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/

Reply via email to