title: Deserialize multiple XML elements with the same name through XmlSerializer class in C#
body: <p>I have an XML in the form   </p>
  
  <pre><code> &lt;BackupSchedule&gt;
      &lt;AggressiveMode&gt;0&lt;/AggressiveMode&gt;  
      &lt;ScheduleType&gt;0&lt;/ScheduleType&gt;  
      &lt;ScheduledDay&gt;0&lt;/ScheduledDay&gt;  
      &lt;ScheduledDay&gt;1&lt;/ScheduledDay&gt;  
      &lt;ScheduledDay&gt;0&lt;/ScheduledDay&gt;  
      &lt;ScheduledDay&gt;0&lt;/ScheduledDay&gt;  
      &lt;ScheduledDay&gt;0&lt;/ScheduledDay&gt;  
      &lt;ScheduledDay&gt;0&lt;/ScheduledDay&gt;  
      &lt;ScheduledDay&gt;0&lt;/ScheduledDay&gt;  
      &lt;WindowStart&gt;480&lt;/WindowStart&gt;  
      &lt;WindowEnd&gt;1020&lt;/WindowEnd&gt;  
      &lt;ScheduleInterval&gt;0&lt;/ScheduleInterval&gt;  
    &lt;/BackupSchedule&gt;
  </code></pre>
  
  <p>I need to deserialize it, change its contents and than save it back. I am facing problem in reading ScheduledDay element. 
  My class is like </p>
  
  <pre><code>public class BackupScheduleSettings  
  {  
          public BackupScheduleSettings()  
          {   
              ScheduledDay = new int[7];  
          }  
  
          .....
          public int[] ScheduledDay { get; set; }
          .....  
   }
  </code></pre>
  
  <p>Now when I load XML content which has right values for ScheduledDay, my class array is still NULL.</p>
  
  <p>I can't modify the content/format of XML since it is legacy code. I don't want to use XDocument to read the value since it is a large XML and I need to serialize it again.</p>
  
  <p>I have searched a lot without any help. Any ideas will be highly appreciated.</p>
  
  <p>Thanks...</p>