hey, http://groups.google.com/group/jquery-en/browse_thread/thread/f6cf0516dacdab18
$(xml).find('row').each(function(index, obj){ document.write($(obj).html() + "<br/>"); }); this would work w/ out the CDATA. On Mar 18, 3:27 pm, slgm <stephen.llewel...@games-media.com> wrote: > hi, > > I've looked through at awfaul lot of posts/articles and haven't been > able to get this thing working. The xml and the jquery code is below. > The problem ive been getting is that despite the xml being > successfully load from the ajax call and despite the jquery loop > looping through the xml no actual values from the xml are actually > extracted from it. In Firefox you get the alert with caption in it > (and blank value) and then a series of the value alert boxes with no > value. In IE7 you get jsut the balnk caption alert and then it stops. > > Thanks in advance for your help! > > XML (W3C validator says its valid) > > <?xml version="1.0" encoding="ISO-8859-1"?> > <grid> > <caption>Content History</caption> > <head> > <row class="first-col"> > <![CDATA[Content Name]]> > </row> > <row class=""> > <![CDATA[Date Enabled]]> > > </row> > <row class="col-thin"> > <![CDATA[]]> > </row> > <row class="text-bottom"> > <![CDATA[09 02]]> > </row> > <row> > <![CDATA[Payout %]]> > > </row> > <row class="col-thin"> > <![CDATA[]]> > </row> > <row> > <![CDATA[Date Removed]]> > </row> > </head> > </grid> > > jQuery (jquery-1.3.2) > > jQuery(document).ready(function() { > jQuery.get("http://localhost/crm/terminal-performance/grid/ > term- > perf2/", function(xml) { > alert('caption: ' + jQuery(xml).find('caption').text > ()); > > jQuery(xml).find('row').each(function(){ > var rowValue = jQuery(this).text(); > alert('value: ' + rowValue); > }); > });