How to deserialize this xml doc into list
<p>In app a get a response from vk server with information about user's playlist in xml. App throw <code>InvalidOperationexception</code> here</p>

<pre><code>var result = (PlayList)serializer.Deserialize(reader);
</code></pre>

<p>DTOs:</p>

<pre><code>public class PlayList
{
    [XmlElement("audio")]
    public List&lt;Song&gt; Audio { get; set; }

    public PlayList()
    {
        Audio = new List&lt;Song&gt;();
    }
}

public class Song
{
    [XmlElement(ElementName ="id")]
    public int Id { get; set; }

    ...

    [XmlElement(ElementName ="genre_id")]
    public int Genre_id { get; set; }``
}
</code></pre>

<p>But my code work when I delete this 3 lines from xmlfile </p>

<pre><code>&lt;response&gt; 
&lt;count&gt;156&lt;/count&gt; 
... 
&lt;response&gt;
and &lt;items list="true"&gt;  -&gt;  &lt;items&gt;
</code></pre>

<p>What I must change in my code to make it work?</p>

<pre><code>  var serializer = new XmlSerializer(typeof(PlayList), new XmlRootAttribute("items"));
  using (var stringReader = new StringReader(xml))
  using (var reader = XmlReader.Create(stringReader))
  {
      var result = (PlayList)serializer.Deserialize(reader);
      Console.WriteLine(result.Audio[1].Title);
  }
</code></pre>

<p>And this is an example of xml.
How do I Deserialize this XML document?   </p>

<pre><code>var xml =
@"&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;response&gt;
&lt;count&gt;156&lt;/count&gt;
&lt;items list="true"&gt;
&lt;audio&gt;
  &lt;id&gt;456239034&lt;/id&gt;
  &lt;owner_id&gt;181216176&lt;/owner_id&gt;
  &lt;artist&gt;Oh Wonder&lt;/artist&gt;
  &lt;title&gt;Technicolour Beat&lt;/title&gt;
  &lt;duration&gt;179&lt;/duration&gt;
  &lt;date&gt;1465249779&lt;/date&gt;
  &lt;url&gt;http://cs613222.vk.me/u285269348/audios/4ae051b98797.mp3?extra=MS3dvwutPkFx7k8rQdV3Szuh7cSwLkRcS_KpPbO9DXviMFLNNgkDAmZFWdIueioL3dDgdPUc7rch0V81KgOHYaTTSampaRcljxrJcytJYImZssivVP7DigKdcxaLoALeUatAhuHk5gXQ7TY&lt;/url&gt;
  &lt;lyrics_id&gt;235824304&lt;/lyrics_id&gt;
  &lt;genre_id&gt;1001&lt;/genre_id&gt;
&lt;/audio&gt;
&lt;audio&gt;
  &lt;id&gt;456239033&lt;/id&gt;
  &lt;owner_id&gt;181216176&lt;/owner_id&gt;
  &lt;artist&gt;Mikky Ekko&lt;/artist&gt;
  &lt;title&gt;We Must Be Killers (Волчонок / Teen Wolf / 2х08) &lt;/title&gt;
  &lt;duration&gt;195&lt;/duration&gt;
  &lt;date&gt;1465249755&lt;/date&gt;
  &lt;url&gt;http://cs521610.vk.me/u14558277/audios/c2daca7b2b6f.mp3?extra=z9VPdKf6v-    n7zkIfZ_6ej-RZSjlIjAr_qYmVp4F-zI1Z3ZXgVtOUElovlOiSOgSuKbFC0e0ahac8XU-AxNtfEYYPe5gcejSotr84mHi0LQ2L-b0BPWP2cYn5Yy44YN4FLPNKq0Ow8vMKFn0&lt;/url&gt;
  &lt;lyrics_id&gt;26311225&lt;/lyrics_id&gt;
&lt;/audio&gt;
&lt;/items&gt;
&lt;/response&gt;";
</code></pre>