title: XML and .NET: How to replace specific node with many other ones loaded from raw xml data
body: <p>Let's suppose we have an element like this one in the main xml file: <code>&lt;group name="gr1" filename="groups/gr1.xml"/&gt;</code>. The second file gr1.xml contains something like this:</p>
  
  <pre><code>&lt;item name="i1"&gt;Item one&lt;/item&gt;
  &lt;item name="i2"&gt;Item two&lt;/item&gt;
  &lt;item name="i3"&gt;Item three&lt;/item&gt;
  </code></pre>
  
  <p>Note that there is no XML declaration in gr1.xml, just plain items without single parent node.</p>
  
  <p>So… Which is the best way to replace <code>&lt;group/&gt;</code> with its <code>&lt;item/&gt;</code>s?</p>
  
  <p>I have already tried some things like manual enclosing of gr1.xml content into a single node with XML declaration and loading it into XmlDocument, but it doesn't look like a good solution.</p>