title: What is the fastest way to combine two xml files into one
body: <p>If I have  two string of xml1 and xml2 which both represent xml in the same format. What is the fastest way to combine  these together? The format is not important, but I just want to know how can I get rid off  or ?</p>
  
  <p>xml1 :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;AllNodes&gt;
     &lt;NodeA&gt;
        &lt;NodeB&gt;test1&lt;/NodeB&gt;
        &lt;NodeB&gt;test2&lt;/NodeB&gt;
     &lt;/NodeA&gt;
  &lt;/AllNodes&gt;
  </code></pre>
  
  <p>xm2 :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;AllNodes&gt;
     &lt;NodeA&gt;
        &lt;NodeB&gt;test6&lt;/NodeB&gt;
        &lt;NodeB&gt;test7&lt;/NodeB&gt;
     &lt;/NodeA&gt;
     &lt;NodeA&gt;
        &lt;NodeB&gt;test99&lt;/NodeB&gt;
        &lt;NodeB&gt;test23&lt;/NodeB&gt;
     &lt;/NodeA&gt;
  &lt;/AllNodes&gt;
  </code></pre>
  
  <p>and have something like this : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;AllNodes&gt;
            &lt;NodeA&gt;
                &lt;NodeB&gt;test1&lt;/NodeB&gt;
                &lt;NodeB&gt;test2&lt;/NodeB&gt;
            &lt;/NodeA&gt;
           &lt;NodeA&gt;
                &lt;NodeB&gt;test6&lt;/NodeB&gt;
                &lt;NodeB&gt;test7&lt;/NodeB&gt;
             &lt;/NodeA&gt;
             &lt;NodeA&gt;
                &lt;NodeB&gt;test99&lt;/NodeB&gt;
                &lt;NodeB&gt;test23&lt;/NodeB&gt;
             &lt;/NodeA&gt;
      &lt;/AllNodes&gt;
  </code></pre>