title: WebApi XML Deserialization - Node with multiple child nodes is not correctly deserialized as array of childnode objects
body: <p>I'm trying to deserialize an XML by POST-ing it to an WebApi POST method. Everything works fine and deserializes okay, except for a node with multiple child nodes. </p>
  
  <p>The code looks like this:</p>
  
  <pre><code>[Serializable]
  public class grandparentnode
  {
      [XmlElement]
      public parentnode[] parentnode { get; set; }
  }
  
  [Serializable]
  public class parentnode
  {
      public childnode childnode { get; set; }
  }
  
  [Serializable]
  public class childnode
  {
      public string foo { get; set; }
      public string bar { get; set; }
      public string baz { get; set; }
  }
  </code></pre>
  
  <p>This is the XML:</p>
  
  <pre><code>&lt;grandparentnode&gt;
      &lt;parentnode&gt;
          &lt;childnode&gt;
              &lt;foo&gt;1&lt;/foo&gt;
              &lt;bar&gt;2&lt;/bar&gt;
              &lt;baz&gt;3&lt;/baz&gt;
          &lt;/childnode&gt;
          &lt;childnode&gt;
              &lt;foo&gt;4&lt;/foo&gt;
              &lt;bar&gt;5&lt;/bar&gt;
              &lt;baz&gt;6&lt;/baz&gt;
          &lt;/childnode&gt;
          &lt;childnode&gt;
              &lt;foo&gt;7&lt;/foo&gt;
              &lt;bar&gt;8&lt;/bar&gt;
              &lt;baz&gt;9&lt;/baz&gt;
          &lt;/childnode&gt;
      &lt;/parentnode&gt;
  &lt;/grandparentnode&gt;
  </code></pre>
  
  <p>The problem is, that on debug, all that I get is one item in the <code>parentnode[]</code> array, like this: <code>{WebApiListener.Controllers.FooBarBazController.parentnode[1]}</code>. I would need parentnode as an array of childnode objects.</p>
  
  <p>Any idea why?</p>
  
  <p>Thank you,<br>
  <em>Peter</em></p>