Hi Donnie & Pirco, You can use the .text() jQuery method to get at the CDATA.
The error though is coming from how you're selecting the ID: Instead of: html = $.trim($(xml).find("html").text()); alert($("#mydiv", html).attr("id")); Try: // XML is already a XML Document object var cdata = $.trim( $('html', xml).text() ); alert( $(cdata).find('#mydiv').attr('id') ); Cheers, - Jonathan http://jqueryminute.com On Sun, Oct 4, 2009 at 2:49 PM, pirco pirco <pi...@piroc.com> wrote: > > > did u ever get an answer for this? > I'm in desperate need to pull CDATA content from my XML file as well. > > please let me know. > > thanks! >