[jQuery] Re: XML .text() ?

2009-01-20 Thread michaelr524
Oh, I see.. Is there a way to get the text representation of the xml nodes in that xml element? Like el.html() for html dom? On Jan 20, 11:04 pm, Ricardo Tomasi wrote: > You don't have any text in that node. > > xml = 'abd'; > $(xml).find('d').text() > &

[jQuery] XML .text() ?

2009-01-20 Thread michaelr524
Hey people, I'm parsing XML from ajax in JQuery and it works for find()ing nodes and getting attributes values with attr(). But when I try to get the text content of a node it returns empty string. For example: var xml = " " $(xml).find('d').attr('atr') - returns 'd' $(xm