title: Deserialize XML to object doesn't work
body: <p>I have a XML as below. I want to convert this to c# object . I tried modyfying but could not get it working.</p>
  
  <pre><code>&lt;SLVGeoZone-array&gt;
     &lt;SLVGeoZone&gt;
      &lt;id&gt;19&lt;/id&gt;
      &lt;type&gt;geozone&lt;/type&gt;
      &lt;name&gt;60_OLC_SC&lt;/name&gt;
      &lt;namesPath&gt;GeoZones/60_OLC_SC&lt;/namesPath&gt;
      &lt;idsPath&gt;1/19&lt;/idsPath&gt;
      &lt;childrenCount&gt;0&lt;/childrenCount&gt;
     &lt;/SLVGeoZone&gt;
    &lt;/SLVGeoZone-array&gt;
  </code></pre>
  
  <p>I have a written a sample c# code and it doesn't work:</p>
  
  <pre><code>[Serializable]
  public class SLVGeoZone
  {
      [XmlElement("id")]
      public string id { get; set; }
  
      [XmlElement("type")]
      public string type { get; set; }
  
      [XmlElement("name")]
      public string name { get; set; }
  
      [XmlElement("namespath")]
      public string namespath { get; set; }
  
      [XmlElement("idspath")]
      public string idspath { get; set; }
  
      [XmlElement("childrencount")]
      public string childrencount { get; set; }
  }
  
  [Serializable]
  [XmlRoot("SLVGeoZone-array")]
  public class SLVGeoZone-array
  {
      [XmlArray("SLVGeoZone-array")]
      [XmlArrayItem("SLVGeoZone", typeof(SLVGeoZone))]
      public SLVGeoZone[] Car { get; set; }
  }
  </code></pre>
  
  <p>And in the form:</p>
  
  <pre><code>XmlSerializer serializer = new XmlSerializer(typeof(CarCollection));
  StreamReader reader = new StreamReader(path);
  cars = (CarCollection)serializer.Deserialize(reader);
  reader.Close();
  </code></pre>
  
  <p>Can someone suggest what am i doing wrong?</p>