title: XDocument removing nodes
body: <p>I have a XML file </p>
  
  <pre><code>&lt;rows&gt;
    &lt;head&gt;
      &lt;beforeInit&gt;
        &lt;call command="attachHeader"&gt;
          &lt;param&gt;#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter&lt;/param&gt;
        &lt;/call&gt;
      &lt;/beforeInit&gt;
      &lt;afterInit&gt;
        &lt;call command="enablePaging"&gt;
          &lt;param&gt;recinfoArea&lt;/param&gt;
        &lt;/call&gt;
       &lt;/afterInit&gt;
      &lt;column width="100" align="center" type="ro" sort="server" color="undefined" id="Id"&gt;Id&lt;/column&gt;
      &lt;column width="100" align="center" type="ro" sort="server" color="undefined" id="NazovProjektu"&gt;NazovProjektu&lt;/column&gt;
     &lt;/head&gt;
  &lt;/rows&gt;
  </code></pre>
  
  <p>I'd like to remove the beforeInit and afterInit elements.</p>
  
  <p>I tried </p>
  
  <pre><code>xml.Elements().Where(e=&gt;e.Name == "beforeInit" || e.Name == "afterInit").Remove();
  </code></pre>
  
  <p>but no luck.</p>