Deserialize XML Array of Elements
<p>So, deserializing is working however I have some xml like this:</p>

<pre><code>&lt;File&gt;
  &lt;Stuff&gt;stuff&lt;/Stuff&gt;
  &lt;Devices&gt;
    &lt;Device Type="1"&gt;
      &lt;Number&gt;1&lt;/Number&gt;
    &lt;/Device&gt;
    &lt;Device Type="2"&gt;
      &lt;Number&gt;2&lt;/Number&gt;
    &lt;/Device&gt;
  &lt;/Devices&gt;
&lt;/File&gt;
</code></pre>

<p>When it gets to the array of devices... the first device is the only one that is populated into an object. Here are the classes:</p>

<pre><code>            XmlSerializer deserializer;
            XmlRootAttribute xRoot = new XmlRootAttribute();
            FileStream stream = new FileStream(CONFIG_PATH, FileMode.Open);
            XmlReader reader = new XmlTextReader(stream);

            // Details configuration area.
            xRoot.ElementName = "File";
            xRoot.IsNullable = true;
            deserializer = new XmlSerializer(typeof(File), xRoot);
            Configuration = (File)deserializer.Deserialize(reader);

[Serializable()]
[XmlRoot(ElementName = "File", IsNullable = true)]
public sealed class File
{
    [XmlElement("Devices")]
    public Devices Devices { get; set; }
}

// &lt;summary&gt;
/// Configuration device elements.
/// &lt;/summary&gt;
[Serializable()]
[XmlRoot("Devices", IsNullable = true)]
public sealed class Devices
{
    [XmlElement("Device")]
    public DeviceElements[] DeviceElements { get; set; }
}

/// &lt;summary&gt;
/// Configuration Devices.
/// &lt;/summary&gt;
[Serializable()]
[XmlRoot("Device", IsNullable = true)]
public sealed class DeviceElements
{
    [XmlAttribute("Type")]
    public string DeviceType { get; set; }

    [XmlElement("Number")]
    public int DeviceNumber { get; set; }
}
</code></pre>

<p>Again, only the first Device is populated, I've played with XmlArray And XmlArrayItem however neither of them were even giving me the first value. Any suggestions?</p>
