title: Deserialize an RSS feed in C#.Net
body: <p>i'm very new to deserialization, but i've been given the task of deserializing several feeds and pulling out the data for manipulation.</p>
  
  <p>i've got this RSS feed that's structured like this:</p>
  
  <pre><code>    &lt;channel&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;link&gt;&lt;/link&gt;
          &lt;description&gt;&lt;/description&gt;
          &lt;ttl&gt;&lt;/ttl&gt;
          &lt;item&gt;
              &lt;title&gt;&lt;/title&gt;
              &lt;link&gt;&lt;/link&gt;
              &lt;description&gt;&lt;/description&gt;
              &lt;pubDate&gt;&lt;/pubDate&gt;
              &lt;guid&gt;&lt;/guid&gt;
          &lt;/item&gt;
          &lt;item&gt;
  </code></pre>
  
  <p>in my program i have the following class structure</p>
  
  <pre><code>[XmlRoot("channel")]
  public class RahChannel
  {
      [XmlElement("title")]
      public string title { get; set; }
  
      [XmlElement("link")]
      public string link { get; set; }
  
      [XmlElement("description")]
      public string description { get; set; }
  
      [XmlElement("ttl")]
      public int ttl { get; set; }
  
      [XmlElement("item")]
      public ItemSet[] ItemArray { get; set; }
   }
  
  [XmlArray]
  class ItemSet
  {
      [XmlElement("title")]
      public string itemtitle { get; set; }
  
      [XmlElement("link")]
      public string itemLink { get; set; }
  
      [XmlElement("description")]
      public string itemDescription { get; set; }
  
      [XmlElement("pubDate")]
      public string pubDate { get; set; }
  
      [XmlElement("guid")]
      public string guid { get; set; }
  }
  </code></pre>
  
  <p>i'm using the system.xml.serialization class obviously.</p>
  
  <p>My concern is that elements the array of Items won't get the values they should because they share names with elements outside the array, also have i created the array correctly?.</p>
  
  <p>i've been using this structure to deserialize JSON feeds, and it worked there, but i'm not sure if i've translated it accross properly.</p>
  
  <p>and what is the actual method for deserializing XML? i know what MSDN says i can do (<a href="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.deserialize%28v=vs.71%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.deserialize%28v=vs.71%29.aspx</a>), but i just want to confirm.
  Cheers.</p>