title: Problems deserializing List of objects
body: <p>I am having trouble deserializing a list of objects. I can get just one object to serialize into an object but cannot get the list.  I get no error it just returns an empty List. This is the XML that gets returned:</p>
  
  <pre><code>&lt;locations&gt;
     &lt;location locationtype="building" locationtypeid="1"&gt;
       &lt;id&gt;1&lt;/id&gt;
       &lt;name&gt;Building Name&lt;/name&gt;
       &lt;description&gt;Description of Building&lt;/description&gt;
     &lt;/location&gt;
  &lt;/locations&gt;
  </code></pre>
  
  <p>This is the class I have and I am deserializing in the <code>GetAll</code> method:</p>
  
  <pre><code>[Serializable()]
  [XmlRoot("location")]
  public class Building
  {
      private string method;
  
      [XmlElement("id")]
      public int LocationID { get; set; }
      [XmlElement("name")]
      public string Name { get; set; }
      [XmlElement("description")]
      public string Description { get; set; }
      [XmlElement("mubuildingid")]
      public string MUBuildingID { get; set; }
  
      public List&lt;Building&gt; GetAll()
      {
          var listBuildings = new List&lt;Building&gt;();
          var building = new Building();
          var request = WebRequest.Create(method) as HttpWebRequest;
          var response = request.GetResponse() as HttpWebResponse;
  
          var streamReader = new StreamReader(response.GetResponseStream());
          TextReader reader = streamReader;
          var serializer = new XmlSerializer(typeof(List&lt;Building&gt;), 
              new XmlRootAttribute() { ElementName = "locations" });
          listBuildings = (List&lt;Building&gt;)serializer.Deserialize(reader);
  
          return listBuildings;
      }
  }
  </code></pre>