title: Deserialize array into complex object
body: <p>My XML message looks like: </p>
  
  <pre><code>&lt;msg&gt;
      &lt;reply userid="sales" requestid="2" index="1" pagesize="1000" total="1" type="order"&gt;
          &lt;order id="12db8625cd4-000" owner="sales"&gt;
              &lt;qty size="1" working="0"/&gt;
              &lt;price limit="0.0"/&gt;
          &lt;/order&gt;            
          &lt;order id="12db8636344-000" owner="sales"&gt;
              &lt;qty size="1000" working="0"/&gt;
              &lt;price limit="0.0"/&gt;
          &lt;/order&gt;
      &lt;/reply&gt;
  &lt;/msg&gt;
  </code></pre>
  
  <p>How can I define the Order object to read from the reply array? My objects looks like: </p>
  
  <pre><code>[XmlRootAttribute("reply")]
  public class MessageReply
  {
      [XmlAttribute("userid")]
      public string UserId { get; set; }
  
      [XmlAttribute("requestid")]
      public string RequestId { get; set; }
  
      [XmlAttribute("type")]
      public string Type { get; set; }
  
      [XmlArrayItem(typeof(Order))]
      public List&lt;Order&gt; Orders { get; set; }
  }
  
  [XmlRootAttribute("order")]
  public class Order
  {
      [XmlAttribute("id")]
      public string Id { get; set; }
      [XmlAttribute("owner")]
      public string Owner { get; set;}
      [XmlAttribute("assignee")]
      public string Assignee { get; set; }
      [XmlAttribute("instrumentid")]
      public string InstrumentId { get; set; }
      [XmlAttribute("side")]
      public string Side { get; set;}
      [XmlAttribute("type")]
      public string Type { get; set; }
  }
  </code></pre>
  
  <p>In my case the orders should be in a separate element tag Orders. I want to read them from the reply element. Do you have any idea what to change at my objects XML attributes?</p>