title: List<string> -> xml deserialization
body: <p>I am having the following xml file :</p>
  
  <pre><code>&lt;ItemList&gt;
      &lt;Item id="item-aa-00" status="TYPE1"&gt;
          &lt;Elements&gt;
              &lt;element&gt;element121&lt;/element&gt;       
          &lt;/Elements&gt;     
      &lt;/Item&gt;
      &lt;Item id="item-aa-01" status="TYPE2"&gt;
          &lt;Elements&gt;
              &lt;element&gt;element122&lt;/element&gt;
              &lt;element&gt;element123&lt;/element&gt;
              &lt;element&gt;element124&lt;/element&gt;
          &lt;/Elements&gt;     
      &lt;/Item&gt; 
  &lt;/ItemList&gt;
  </code></pre>
  
  <p>I am trying to deserialize it using the following model :</p>
  
  <pre><code>[DataContract]
  public enum ItemStatusEnum
  {
      [EnumMember(Value = "TYPE1")]
      TYPE1 = 10,
      [EnumMember(Value = "TYPE2")]
      TYPE2 = 20
  }
  
  [XmlRoot("Item")]
  [DataContract(Name = "Item")]
  public class ItemDto
  {
  
      [DataMember(Name = "id")]
      [XmlAttribute(AttributeName = "id")]
      public string Id { get; set; }
  
      [DataMember(Name = "candidateElements")]
      [XmlIgnore]
      public IEnumerable&lt;string&gt; Elements { get; set; }
  
      [XmlArray("Elements")]
      [XmlArrayItem("element"), Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
      public List&lt;string&gt; CandidateElementsSurrogate { get { return Elements .ToList(); } set { Elements = value; } }
  
      [DataMember(Name = "status")]
      [XmlAttribute(AttributeName = "status")]
      public ItemStatusEnum Status { get; set; }
  
      public ItemDto()
      {
          this.Elements = new List&lt;string&gt;();
      }
  
  }
  
  [XmlRoot("ItemList")]
  [DataContract(Name = "ItemListDto", Namespace = "")]
  public class ItemListDto
  {
  
      [XmlElement("Item")]
      [DataMember(Name = "myElements")]
      public List&lt;ItemDto&gt; myElements { get; set; }
  
  }
  </code></pre>
  
  <p>This model manages to deserialize my xml file, but the Elements collection remains empty. What i am missing ?</p>