title: C# ignore parent nodes in xml deserialization
body: <p>this is my first post here and as can you can imagine, i'm just a beginner in c#. So here's my question:
  I'm deserializing a given xml to a custom class with <a href="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx" rel="nofollow">XmlSerializer</a>.  </p>
  
  <p>XML:<br>
  </p>
  
  <pre><code>&lt;epg&gt;
  &lt;program start="20160404234500" stop="20160405001000" channel="281479340566592"&gt;
      &lt;eventid&gt;604042345&lt;/eventid&gt;
      &lt;titles&gt;
          &lt;title&gt;Schlauberger - Quizzen, was Spaß macht! (1)&lt;/title&gt;
      &lt;/titles&gt;
      &lt;events&gt;
          &lt;event&gt;27. Schlauberger - Quizzen, was Spaß macht!&lt;/event&gt;
      &lt;/events&gt;
      &lt;descriptions&gt;
          &lt;description&gt;27. Schlauberger - Quizzen, was Spaß macht!&lt;/description&gt;
      &lt;/descriptions&gt;
  &lt;/program&gt;
  &lt;program start="20160504234500" stop="20160505001000" channel="281479340566587"&gt;
      &lt;eventid&gt;604042348&lt;/eventid&gt;
      &lt;title&gt;Schlauberger - Quizzen, was Spaß macht! (2)&lt;/title&gt;
      &lt;event&gt;28. Schlauberger - Quizzen, was Spaß macht!&lt;/event&gt;
      &lt;description&gt;28. Schlauberger - Quizzen, was Spaß macht!&lt;/description&gt;
  &lt;/program&gt;
  </code></pre>
  
  <p></p>
  
  <p>Custom C# class:
  </p>
  
  <pre><code>public class Titles
  {
      [XmlElement("title")]
      public string Title { get; set; }
  }
  
  public class SubTitles
  {
      [XmlElement("event")]
      public string SubTitle { get; set; }
  }
  
  public class Descriptions
  {
      [XmlElement("description")]
      public string Description { get; set; }
  }
  
  public class Program
  {
      [XmlElement("eventid")]
      public string EventID { get; set; }
      [XmlElement("titles")]
      public Titles Titles { get; set; }
      [XmlElement("events")]
      public SubTitles SubTitles { get; set; }
      [XmlElement("descriptions")]
      public Descriptions Descriptions { get; set; }
      [XmlAttribute("start")]
      public string Start { get; set; }
      [XmlAttribute("stop")]
      public string Stop { get; set; }
      [XmlAttribute("channel")]
      public string Channel { get; set; }
      [XmlElement("title")]
      public string Title { get; set; }
      [XmlElement("event")]
      public string SubTitle { get; set; }
      [XmlElement("description")]
      public string Description { get; set; }
  }
  
  [XmlRoot(ElementName = "epg"), XmlType("epg")]
  public class epg
  {
      [XmlElement("program")]
      public List&lt;Program&gt; Program { get; set; }
  }
  </code></pre>
  
  <p>No problem so far. But as you can see, because "title", "event" and "description" is sometimes nested in a majority and sometimes not, i can access the properties in my later code sometimes by a list and sometimes directly. This makes the code really inconvenient.<br>
  So is it somehow possible to ignore the majorities and always use the single nodes instead?</p>