title: Merge two XML files in java and make single xml
body: <p>Suppose a class <code>Output.java</code> contains 6 varibles, out of which 4 variables data is stored on  <code>database_A</code> and 2 variable data is stored in <code>database_B</code>. </p>
  
  <p>My class <code>Delegate.java</code> need to communicate with two diffrent service <code>Service_A.java</code> and <code>Service_B.java</code> which will ask <code>database_A</code> and <code>database_B</code> respectively to fetch respective data (<code>database_A</code> - 4 varibales, <code>database_B</code> - 2 variables).</p>
  
  <p>The communication between <code>Delegate.java</code> and <code>Service_A.java</code>/<code>Service_B.java</code> is in form of XML request/response.</p>
  
  <p>So <code>Deleage.java</code> will have two XML as response, one from <code>database_A</code> (called by <code>Service_A.java</code>) and one from <code>database_b</code> (called by <code>Service_B.java</code>).</p>
  
  <p>I want to merge these two XML files and make a singe XML file <code>Final_xml</code>, which contains valuse of all 6 variables of <code>Output.java</code> class.</p>