title: Linq to XML - update/alter the nodes of an XML Document
body: <p>I've got 2 Questions:</p>
  
  <p>1.
  I've sarted working around with Linq to XML and i'm wondering if it is possible to change an XML document via Linq. I mean, is there someting like </p>
  
  <pre><code>XDocument xmlDoc = XDocument.Load("sample.xml");
  
  update item in xmlDoc.Descendants("item")
  where (int)item .Attribute("id") == id
  ...
  </code></pre>
  
  <p>2.
  I already know how to create and add a new XMLElement by simply using </p>
  
  <pre><code>xmlDoc.Element("items").Add(new XElement(......);
  </code></pre>
  
  <p>but how can I remove a single entry?</p>
  
  <p>XML sample data:</p>
  
  <pre><code>&lt;items&gt;
    &lt;item id="1" name="sample1" info="sample1 info" web="" /&gt;
    &lt;item id="2" name="sample2" info="sample2 info" web="" /&gt;
  &lt;/itmes&gt;
  </code></pre>