title: Best way to read through xml
body: <p>HI I have a xml document like this:</p>
  
  <pre><code>&lt;Students&gt;
  &lt;student name="A" class="1"/&gt;
  &lt;student name="B"class="2"/&gt;
  &lt;student name="c" class="3"/&gt;
  &lt;/Students&gt;
  </code></pre>
  
  <p>I want to use <code>XmlReader</code> to read through this xml and return a list of students as <code>List&lt;student&gt;</code>.
  I know this can be achieved as follows:</p>
  
  <pre><code> List&lt;Student&gt; students = new List&lt;Student&gt;();
      XmlReader reader = XmlReader.Create("AppManifest.xml");
      while (reader.Read())
      {
         if (reader.NodeType == XmlNodeType.Element &amp;&amp; reader.Name == "student")
         {
              students.Add(new Student()
              {
                   Name = reader.GetAttribute("name"),
                   Class = reader.GetAttribute("Class")
               });
          }
       }
  </code></pre>
  
  <p>I just want to know if there is any better solution for this? </p>
  
  <p>I am using silverlight 4. The xml structure is static, ie. it will have only one <code>Students</code> node and all the student node with above said attributes will only be there.</p>