title: use LINQ on XmlNodeList
body: <pre><code>&lt;X version="1.0"&gt;
    &lt;Y id="abc" abv="a"/&gt;
    &lt;Y id="edf" abv="e"/&gt;
  &lt;/X&gt;
  </code></pre>
  
  <p>I want to select the node whose id is "abc", and return its abv "a".</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  doc.Load(filePath);
  XmlNodeList list = doc.SelectNodes("X/Y");
  var node = list.Cast&lt;XmlNode&gt;().Where(node =&gt; node["id"].InnerText == "abc")
                                 .Select(x=&gt;x["abv"].InnerText);
  </code></pre>
  
  <p>But it does't work, node["id"].InnerText is always "". Can you point out where is a problem? </p>
  
  <p>Thanks a lot</p>