Scenario
I am consuming an RSS feed that looks, in part, like this:
<item>
<title>Blog Title Here</title>
<link>http://blogurl.com/2010/03/23/title/</link>
<comments>http://blogurl.com/2010/03/23/title/#comments</comments>
<pubDate>Tue, 23 Mar 2010 10:44:54 +0000</pubDate>
<dc:creator>AuthorName</dc:creator>
<category><![CDATA[CategoryName]]></category>
<guid isPermaLink="false">http://blogurl.com/?p=102</guid>
<description><![CDATA[Description of post content]]></description>
<content:encoded><![CDATA[Full blog post here]]></content:encoded>
</item>
I am using Rss20FeedFormatter to get a list of SyndicationItems, like this:
List<SyndicationItem> items;
using (var reader = XmlReader.Create("http://blogurl.com/feed/"))
{
var formatter = new Rss20FeedFormatter();
formatter.ReadFrom(reader);
items = formatter.Feed.Items.ToList();
}
Problem
I have no idea how to access the value dc:creator element. I believe that I need to use ElementExtensions somehow, but I'm not sure of the syntax, and can't find examples anywhere.