title: merge XML using STAX XMLStreamWriter
body: <p>I have created an <code>XML</code> using <code>STAX</code> and XMLStreamWriter. It works fine.</p>
  
  <p>I need to merge two xml together. The problem that I am facing is the patient Pojo returns me XML containing all the patient information is below </p>
  
  <pre><code>   &lt;Patient&gt;
      &lt;SocialSecurity&gt;3333344&lt;/SocialSecurity&gt;
      &lt;Name&gt;
      &lt;LastName&gt;pillai&lt;/LastName&gt;
      &lt;FirstName&gt;dhanya&lt;/FirstName&gt;
      &lt;Name&gt;
      &lt;Patient&gt;
  </code></pre>
  
  <p>I need to add this into existing XML after <code>&lt;proID&gt;</code> like merging.</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
    &lt;Validate&gt;
      &lt;proID&gt;123&lt;/prodID&gt;
  &lt;/Validate&gt;
  </code></pre>
  
  <p>Please advice</p>