title: read xml file using linq
body: <p>i have the following xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;Users&gt;
      &lt;User&gt;
          &lt;Name&gt;John Smith&lt;/Name&gt;
          &lt;test&gt;
              &lt;Date&gt;23.05.2011&lt;/Date&gt;
              &lt;points&gt;33&lt;/points&gt;
          &lt;/test&gt;
          &lt;test&gt;
              &lt;Date&gt;22.06.2011&lt;/Date&gt;
              &lt;points&gt;29&lt;/points&gt;
          &lt;/test&gt;
      &lt;/User&gt;
  &lt;/Users&gt;
  </code></pre>
  
  <p>and i would like to use linq to extract the dates and the points of the tests where username is "John Smith"..</p>
  
  <p>how would i build my linq ?</p>
  
  <p>i have done the following, but is not working as i wish :</p>
  
  <pre><code>XElement main = XElement.Load(@"users.xml");
  
  string t = "John Smith";
  var v = from user in main.Elements("User")
          where t == users.Element("Name").Value
          select users;
  
  MessageBox.Show(v.First().Element("Date").Value.ToString()); 
  </code></pre>