title: Element was not expected While Deserializing an Array with XML Serialization
body: <p>OK. I'm trying to work on communicating with the Pivotal Tracker API, which only returns data in an XML format. I have the following XML that I'm trying to deserialize into my domain model.</p>
  
  <pre><code>
  &lt;?xml version="1.0" encoding="UTF-8"?>
  &lt;stories type="array" count="2" total="2">
    &lt;story>
      &lt;id type="integer">2909137&lt;/id>
      &lt;project_id type="integer">68153&lt;/project_id>
      &lt;story_type>bug&lt;/story_type>
      &lt;url>http://www.pivotaltracker.com/story/show/2909137&lt;/url>
      &lt;current_state>unscheduled&lt;/current_state>
      &lt;description>&lt;/description>
      &lt;name>Test #2&lt;/name>
      &lt;requested_by>Anthony Shaw&lt;/requested_by>
      &lt;created_at type="datetime">2010/03/23 20:05:58 EDT&lt;/created_at>
      &lt;updated_at type="datetime">2010/03/23 20:05:58 EDT&lt;/updated_at>
    &lt;/story>
    &lt;story>
      &lt;id type="integer">2909135&lt;/id>
      &lt;project_id type="integer">68153&lt;/project_id>
      &lt;story_type>feature&lt;/story_type>
      &lt;url>http://www.pivotaltracker.com/story/show/2909135&lt;/url>
      &lt;estimate type="integer">-1&lt;/estimate>
      &lt;current_state>unscheduled&lt;/current_state>
      &lt;description>&lt;/description>
      &lt;name>Test #1&lt;/name>
      &lt;requested_by>Anthony Shaw&lt;/requested_by>
      &lt;created_at type="datetime">2010/03/23 20:05:53 EDT&lt;/created_at>
      &lt;updated_at type="datetime">2010/03/23 20:05:53 EDT&lt;/updated_at>
    &lt;/story>
  &lt;/stories>
  
  </code></pre>
  
  <p>My 'story' object is created as follows:</p>
  
  <pre><code>
  public class story
  {
       public int id { get; set; }
       public int estimate { get; set; }
       public int project_id { get; set; }
  
          public string story_type { get; set; }
          public string url { get; set; }
          public string current_state { get; set; }
          public string description { get; set; }
          public string name { get; set; }
          public string requested_by { get; set; }
          public string labels { get; set; }
          public string lighthouse_id { get; set; }
          public string lighthouse_url { get; set; }
          public string owned_by { get; set; }
          public string accepted_at { get; set; }
          public string created_at { get; set; }
  
          public attachment[] attachments { get; set; }
          public note[] notes { get; set; }
      }
  </code></pre>
  
  <p>When I execute my deserialization code, I receive the following exception:</p>
  
  <pre><code>
  Exception:
     There is an error in XML document (2, 2).
  
  Inner Exception:
     &lt;stories xmlns=''> was not expected.
  </code></pre>
  
  <p>I can deserialize the individual stories just fine, I just cannot deserialize this xml into an array of 'story' objects</p>
  
  <p>And my deserialization code (value is a string of the xml)</p>
  
  <pre><code>
  var byteArray = Encoding.ASCII.GetBytes(value);
  var stream = new MemoryStream(byteArray);
  var deserializedObject = new XmlSerializer(typeof (story[])).Deserialize(stream)
  </code></pre>
  
  <p>Does anybody have any ideas?</p>