[jQuery] Problem reading rss <link> tag
Hi,
I am trying to parse a rss feed. My code seems to be able to extract
the value for any tag in the feed except the "link" tag. I am using
Firefox 3.0.6.
$.get("pressRelease1.xml",{},function(d){
$(d).find('item').each(function() {
var $item = $(this);
var title = $item.find('title').text(); //this works
var description = $item.find('description').text(); //this works too
var link = $item.find('link').text(); //this doesnt work
});
});
When i turned on Venkman's javascript debugger, the innerHtml had
something like this:
<link>Bla Bla Bla\n .
It seems to be missing the the end tag for link. I cant seem to
understand this behavior. I googled a lot but i couldnt find posts
related to this problem. I am very sure that there is nothing wrong in
my feed. If you have come across something like this, can you please
help? Thank you.
Thanks
Karthik