title: How to find XElement specific Children (in c# with LINQ)?
body: <p>I've got an XML file like this :</p>
  
  <pre><code>&lt;root&gt;
   &lt;environment env="PROD"&gt;
    &lt;key name="Big Key" propagate="true" value="21" /&gt;
   &lt;/environment&gt;
   &lt;environment env="PRE-PROD"&gt;
    &lt;key name="First Key" propagate="true" value="4" /&gt;
    &lt;key name="Second Key" propagate="true" value="3" /&gt;
   &lt;/environment&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I want to check if a key exist in that file, and if the propagate item is true.
  I manage to get those 2 System.Xml.Linq.XElement : key name="First Key" AND key name="Second Key".
  but I would like to <strong>get only the one by pKeyname</strong> (like "Second Key" for eg.) I can't find how...</p>
  
  <pre><code>public static bool IsPropagate(string pXmlFileName, string pEnvironment, string pKeyname)
  {
  var doc = XElement.Load(pXmlFileName);
  IEnumerable&lt;XElement&gt; childList = doc.Elements("environment")
  .Where(elt =&gt; elt.Attribute("env").Value == pEnvironment)
  .Elements();
  
  if (childList.Any())
  return true;
  return false;
  }
  </code></pre>
  
  <p>Any help would be highly appreciated!</p>