title: How to consume a RSS feed and read the dc:creator element
body: <p>I am trying to get this to work</p>
  
  <p>I am using <a href="http://www.microsoft.com/web/post/retrieving-data-from-an-rss-feed-using-aspnet-web-pages-with-razor-syntax" rel="nofollow">this code</a> and it works fine by itself, but now I am trying to get the following element to be read: dc:creator and are not able to.</p>
  
  <p>class file:</p>
  
  <pre><code>public class RSSItem
  
  {
      XNamespace dc="http://purl.org/dc/elements/1.1/";
      public string Title { get; set; }
      public string Description { get; set; }
      public string PubDate { get; set; }
      public string Link { get; set; }
      public string strGuid { get; set; }
      public string Author { get; set; }
      public string Dc_creator { get; set; }
  
  
      // Next we’ll modify the constructor. First add a parameter list to the constructor:
      public RSSItem(string title, string description, string link, string guid, 
                     string pubDate, string (dc:creator) //&lt;-- not working but what to use instead)
      {
          // This constructor will be used to parse the RSS xml. Add the following code to the constructor:
          Title = title;
          Description = description;
          Link = link;
          strGuid = guid;
          PubDate = pubDate; 
          Dc_creator = dc:creator; &lt;-- not working but what to use instead
  </code></pre>
  
  <p>Obviously this does not work:</p>
  
  <pre><code>string (dc:creator)) in the constructor
  </code></pre>
  
  <p>page.cshtml:</p>
  
  <pre><code>  &lt;div&gt;
       @{
           XNamespace dc = XNamespace.Get("http://purl.org/dc/elements/1.1/");
           XDocument rss = XDocument.Load("http://rss.xml");
           var items = from elem in rss.Elements("rss").Elements("channel").Elements("item")
          select elem;
  
           foreach (var item in items)
           { 
               RSSItem rssItem = new RSSItem(
                   item.Element("title").Value,
                   item.Element("link").Value,
                   item.Element("guid").Value,
                   item.Element("description").Value,
                   //item.Element("author").Value,
                   item.Element("pubDate").Value,
                   item.Element(dc + "creator").Value
                   );
             &lt;span class="rssStyle"&gt;
                &lt;div&gt;
                   &lt;b&gt;@rssItem.Title&lt;/b&gt;
                &lt;/div&gt;
      etc etc
  </code></pre>
  
  <p>So how do I manage to have the class constructor read the <code>dc:creator</code> element?</p>