title: How to insert a xml node as first child in another xml document in java?
body: <p>for eg. root= </p>
  
  <pre><code>&lt;root&gt;
    &lt;param value="abc"&gt;
    &lt;param value="bc"&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>NodeToInsert could be</p>
  
  <pre><code>&lt;insert&gt;&lt;parameterDesc&gt;afds&lt;/parameterDesc&gt;&lt;/insert&gt;
  </code></pre>
  
  <p>The output should be:</p>
  
  <pre><code>&lt;root&gt;
    &lt;insert&gt;&lt;parameterDesc&gt;afds&lt;/parameterDesc&gt;&lt;/insert&gt;
    &lt;param value="abc"&gt;
    &lt;param value="bc"&gt;
  &lt;/root&gt;  
  </code></pre>