JQuery XML have .text() return only current node text

kristijandz

New Member
Sorry for the vague title. Here's an example of what I'd like to do.\[code\]<book> The Lord of the Rings <author>JRR Tolkien</author></book>$xml.find("book").each(function(){ $(this).text();});\[/code\]$(this).text(); returns not only "The Lord of the Rings" but also ... and any other nodes inside . I'm looking for a consistant way to return only "The Lord of the Rings" or whatever information i have in there.
 
Back
Top