title: Merging two xml files LINQ
body: <p>I have problem merging two XML files. 
  I loaded both files into two  objects, located the target nodes in both objects and tried to merge.   </p>
  
  <p>Here is a sample:</p>
  
  <pre><code>var nodes1 = XResult1.Descendants("subject");
  var nodes2 = XResult2.Descendants("subject");
  
  //nodes1.Add(nodes2.Nodes());
  </code></pre>
  
  <p>//<strong>* Code to merge**</strong> 
  Can somebody pls help me.
  Thanks in advance... BB</p>
  
  <p>Here is my XResult1:</p>
  
  
  
  
  <pre>
  &lt;subjects&gt;
      &lt;subject&gt;
          &lt;node id=&quot;1&quot;&gt;
              Hi
          &lt;/node&gt;
          &lt;node id=&quot;2&quot;&gt;
              Hi again
          &lt;/node&gt;
          &lt;node id=&quot;3&quot;&gt;
              Hi once more
          &lt;/node&gt;
      &lt;/subject&gt;
  &lt;/subjects&gt;
  </pre>
  
  
  
  
  <p>Here is my XResult2 : </p>
  
  
  
  
  <pre>
  &lt;subjects&gt;
      &lt;subject&gt;
          &lt;node id=&quot;4&quot;&gt;
              Hello
          &lt;/node&gt;
          &lt;node id=&quot;5&quot;&gt;
              Hello again
          &lt;/node&gt;
      &lt;/subject&gt;
  &lt;/subjects&gt;
  </pre>
  
  
  
  
  <p>And my final Result should be :</p>
  
  
  
  
  <pre>
  &lt;subjects&gt;
      &lt;subject&gt;
          &lt;node id=&quot;1&quot;&gt;
              Hi
          &lt;/node&gt;
          &lt;node id=&quot;2&quot;&gt;
              Hi again
          &lt;/node&gt;
          &lt;node id=&quot;3&quot;&gt;
              Hi once more
          &lt;/node&gt;
          &lt;node id=&quot;4&quot;&gt;
              Hello
          &lt;/node&gt;
          &lt;node id=&quot;5&quot;&gt;
              Hello again
          &lt;/node&gt;
  
      &lt;/subject&gt;
  &lt;/subjects&gt;
  </pre>