title: How can I create and wrap the child node around all other child nodes?
body: <p>I have something like this:</p>
  
  <pre><code>&lt;DataTable&gt;
     &lt;Tests&gt;
         &lt;Test1&gt;1&lt;/Test1&gt;
         &lt;Test2&gt;2&lt;/Test2&gt;
         &lt;Test3&gt;3&lt;/Test3&gt;
      &lt;/Tests&gt;
      &lt;Tests&gt;
         &lt;Test1&gt;4&lt;/Test1&gt;
         &lt;Test2&gt;5&lt;/Test2&gt;
         &lt;Test3&gt;6&lt;/Test3&gt;
      &lt;/Tests&gt;
  &lt;/DataTable&gt;
  </code></pre>
  
  <p>Is there any way to create another child node and wrap it around all other tests like this:</p>
  
  <pre><code>  &lt;DataTable&gt;
         &lt;WrapChild&gt;
             &lt;Tests&gt;
                 &lt;Test1&gt;1&lt;/Test1&gt;
                 &lt;Test2&gt;2&lt;/Test2&gt;
                 &lt;Test3&gt;3&lt;/Test3&gt;
              &lt;/Tests&gt;
         &lt;/WrapChild&gt;
         &lt;WrapChild&gt;
              &lt;Tests&gt;
                 &lt;Test1&gt;4&lt;/Test1&gt;
                 &lt;Test2&gt;5&lt;/Test2&gt;
                 &lt;Test3&gt;6&lt;/Test3&gt;
              &lt;/Tests&gt;
        &lt;/WrapChild&gt;
   &lt;/DataTable&gt;
  </code></pre>
  
  <p>I've created a child WrapChild and now have something like this:</p>
  
  <pre><code>&lt;DataTable&gt;
             &lt;WrapChild/&gt;
             &lt;Tests&gt;
               &lt;Test1&gt;1&lt;/Test1&gt;
               &lt;Test2&gt;2&lt;/Test2&gt;
               &lt;Test3&gt;3&lt;/Test3&gt;
             &lt;/Tests&gt;
             &lt;Tests&gt;
               &lt;Test1&gt;4&lt;/Test1&gt;
               &lt;Test2&gt;5&lt;/Test2&gt;
               &lt;Test3&gt;6&lt;/Test3&gt;
             &lt;/Tests&gt;
  &lt;/DataTable&gt;
  </code></pre>
  
  <p>My code that creates the child Element is:</p>
  
  <pre><code>XmlDocument docForList = new XmlDocument();
  XmlElement childElement = docForList.CreateElement("WrapChild");
  XmlNode parentNode = docForList.SelectSingleNode("DataTable");
  parentNode.InsertBefore(childElement,parentNode.FirstChild);
  </code></pre>
  
  <p>But how can I set it to wrap everything in Tests?</p>