Filtering nodes that have a : in the name
I'm a jQuery newbie trying to parse an RSS feed without much luck.
The feed includes data such as this:
-
<item>
<title>Headline</title>...
<dc:creator>Byline</dc:creator>
</item>
Here's the snippet of code I have. It extracts the title and other tags successfully, but not any of the xml tags that have the dc: namespace
-
$('item',xml).each(function(i) {
story['title'] = $(this).find("title").text();
story['link']= $(this).find("link").text();
story['byline']=$(this).filter('dc:creator').text();
});
I've tried a couple of things I saw online and none of them worked:
story['byline']=$(this)[3].text();
story['byline']=$(this).find("[@nodeName=creator]").text();
Thanks for your help.