title: XmlSerializer WebResponse
body: <p>I have this XML with many names, like a list:</p>
  
  <pre><code>&lt;apelidos&gt;
      &lt;apelido&gt;Casmilo&lt;/apelido&gt;
      &lt;apelido&gt;Castro&lt;/apelido&gt;
  &lt;/apelidos&gt;
  </code></pre>
  
  <p>And I did my model like this:</p>
  
  <pre><code>namespace IdCel.Model
  {
     [XmlTypeAttribute(AnonymousType = true)]
     public class apelidos
     {
         [XmlArray("apelidos")]
         [XmlArrayItem("apelidos")]
         public List&lt;apelido&gt; apelidosNomes { get; set; }
  
         public apelidos()
         {
             apelidosNomes = new List&lt;apelido&gt;();
         }
     }
  
     public class apelido
     {
         [XmlElement(ElementName = "apelido")]
         public string apelidoNome { get; set; }
     }
  }
  </code></pre>
  
  <p>And my XmlSerializer </p>
  
  <pre><code>HttpWebRequest request = WebRequest.Create(uri) as HttpWebRequest;
  XmlSerializer ser = new XmlSerializer(objetoLista.GetType());
  
  WebResponse response = request.GetResponse();
  var result = ser.Deserialize(response.GetResponseStream());
  
  return result;
  </code></pre>
  
  <p>But it's not working, I do the same code with XML without list and it's working fine</p>