Hi Jeff, Could you post your JS code and your XML? I'd like to play around with it for you, but things aren't really clear right now ;-)
Fabian On 23 sep, 21:36, Jeff <jpellet...@nesn.com> wrote: > Hi, > > I'm using $.ajax with a dataType of xml. The XML document I'm getting > has a <content> node that contains a bunch of encoded HTML. Sample: > > <content><p><a href=" > > When I alert the text contained within the <content> node: > > alert(data.find('content').text()); > > I can see the above encoded content as formatted HTML: > > <p><a href=" > > I realize that the text() function is returning text, and not the > nodes within. How can I return the nodes within, either as a jQuery > object or the DOM nodes themselves, rather than the text, so I can > actually parse them? > > When I remove the .text() function from the above, ala: > > data.find('content p'); > > I get Undefined. I've tried all kinds of selectors, and nothing > works. > > Finally data.find('content); returns object Object. > > Thanks, > Jeff