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 =
"<slicers>
  <d atr='ddddd'>
     <a></a>
     <b></b>
  </d>
</slicers>"

$(xml).find('d').attr('atr') - returns 'ddddd'
$(xml).find('d').text() - returns empty string

Is it supposed to work?

Thanks
Michael

Reply via email to