title: Xml Deserializer fails to deserialization
body: <p>I would like to deserialize the xml file to a object but unable to get the context attribute from the below xml to the object.</p>
  
  <pre><code>&lt;Receipt&gt;
      &lt;Data context="LastYear"&gt;
        &lt;OtherIncomeReceiptDataEntity  ID="5011"&gt;
          &lt;Amount&gt;5000&lt;/Amount&gt;
          &lt;DatePaid&gt;41274&lt;/DatePaid&gt;
          &lt;TaxDeducted&gt;1000&lt;/TaxDeducted&gt;
          &lt;AllowableExpenses&gt;2000&lt;/AllowableExpenses&gt;
          &lt;Status&gt;Ok&lt;/Status&gt;
        &lt;/OtherIncomeReceiptDataEntity&gt;
      &lt;/Data&gt;
      &lt;Data context="CurrentYear"&gt;
        &lt;OtherIncomeReceiptDataEntity  ID="5012"&gt;
          &lt;Amount&gt;5000&lt;/Amount&gt;
          &lt;DatePaid&gt;41274&lt;/DatePaid&gt;
          &lt;TaxDeducted&gt;1000&lt;/TaxDeducted&gt;
          &lt;AllowableExpenses&gt;2000&lt;/AllowableExpenses&gt;
          &lt;Status&gt;Ok&lt;/Status&gt;
        &lt;/OtherIncomeReceiptDataEntity&gt;
      &lt;/Data&gt;
  &lt;/Receipt&gt;
  </code></pre>
  
  <p>Class Object</p>
  
  <pre><code>public class Receipt
  {
      public List&lt;OtherIncomeReceiptDataEntity&gt; Data { get; set; }
  }
  
  public class OtherIncomeReceiptDataEntity
  {
      [XmlAttribute("openspaceID")]
      public int openspaceID { get; set; }
  
      public double Amount { get; set; }
      public int DatePaid { get; set; }
      public double TaxDeducted { get; set; }
      public double AllowableExpenses { get; set; }
      public DBEStatus Status { get; set; }
  }
  </code></pre>
  
  <p>Code to generate deserialize </p>
  
  <pre><code>    Receipt otherIncomes = null;
      string path = "otherIncomes.xml";
  
      XmlSerializer serializer = new XmlSerializer(typeof(Receipt));
      StreamReader reader = new StreamReader(path);
  
      otherIncomes = (Receipt)serializer.Deserialize(reader);         
      reader.Close();
  </code></pre>
  
  <p>Any suggestion would be appreciated !</p>
  
  <p>Updated ( Object Structure)</p>
  
  <pre><code>public class Receipt
  {
      public List&lt;Data&gt; Data { get; set; }
  }
  
  public class Data
  {
      [XmlAttribute("context")]
      public int context { get; set; }
  
      public OtherIncomeReceiptDataEntity OtherIncomeReceiptDataEntity { get; set; } 
  }
  </code></pre>