title: How do I insert an element into XML using Linq?
body: <p>My XML:</p>
  
  <pre><code>&lt;content&gt;
      &lt;item id="1"&gt;A&lt;/item&gt;
      &lt;item id="2"&gt;B&lt;/item&gt;
      &lt;item id="4"&gt;D&lt;/item&gt;
  &lt;/content&gt;
  </code></pre>
  
  <p>I have loaded this using XML similar to:</p>
  
  <pre><code>XDocument xDoc = new XDocument(data.Value);
  var items = from i in xDoc.Element("content").Elements("item")
      select i;
  </code></pre>
  
  <p>I want to insert another element, to end up with something like:</p>
  
  <pre><code>&lt;content&gt;
      &lt;item id="1"&gt;A&lt;/item&gt;
      &lt;item id="2"&gt;B&lt;/item&gt;
      &lt;item id="3"&gt;C&lt;/item&gt;
      &lt;item id="4"&gt;D&lt;/item&gt;
  &lt;/content&gt;
  </code></pre>
  
  <p>How do I do this using Linq2Xml?</p>