title: Find object in XML file with LINQ
body: <p>I'm doing a CRUD with students and I'm trying to find a student with LINQ but I don't want to use a list so I want to work directly on the XML file. How can I do that?</p>
  
  <p>My XML file is:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;ArrayOfStudent xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;Student&gt;
        &lt;IDstudent&gt;56&lt;/IDstudent&gt;
        &lt;Name&gt;da&lt;/Name&gt;
        &lt;Surname&gt;he&lt;/Surname&gt;
    &lt;/Student&gt;
  &lt;/ArrayOfStudent&gt;
  </code></pre>
  
  <p>It works loading my XML into a list and do LINQ but I want to do it in a efficient way.</p>
  
  <pre><code>    public Student FindStudent(string id)
      {
          List&lt;Student&gt; LStudent = GetAll();
          Student student = LStudent.Where(e =&gt; e.IDstudent == id).FirstOrDefault();
          return student;
  
      }
  </code></pre>