title: Linq query convert to List<string>
body: <p>I have this code</p>
  
  <pre><code>List&lt;string&gt; IDs = new List&lt;string&gt;();
      XDocument doc = XDocument.Parse(xmlFile);
      var query = from c in doc.Root.Elements("a").Elements("b")
          select new { ID = c.Element("val").Value};
  </code></pre>
  
  <p>How can I convert query to List without loop foreach ?</p>
  
  <pre><code>{ ID = c.Element("val")}
  </code></pre>
  
  <p>are strings of course</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>my XML File</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;aBase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;a&gt;
      &lt;b&gt;
        &lt;val&gt;other data&lt;/val&gt;
      &lt;/b&gt;
      &lt;b&gt;
  
        &lt;val&gt;other data&lt;/val&gt;
      &lt;/b&gt;
    &lt;/a&gt;
  &lt;/aBase&gt;
  </code></pre>