Append Node to Existing xml using DocumentBuilderFactory - Java
<p>Java - I formed this current XML using Java DocumentBuilderFactory.</p>

<pre><code>&lt;server&gt;
&lt;excludeList&gt;
    &lt;exclude&gt;.ear&lt;/exclude&gt;
    &lt;exclude&gt;.war&lt;/exclude&gt;
    &lt;exclude&gt;.tar&lt;/exclude&gt;
&lt;/excludeList&gt;
</code></pre>

<p></p>

<p>I want the below new nodes to be added to my New XML using Java DocumentBuilderFactory:</p>

<pre><code>&lt;server&gt;
&lt;excludeList&gt;
    &lt;exclude&gt;.ear&lt;/exclude&gt;
    &lt;exclude&gt;.war&lt;/exclude&gt;
    &lt;exclude&gt;.tar&lt;/exclude&gt;
    &lt;exclude&gt;.txt&lt;/exclude&gt;
    &lt;exclude&gt;apps\third_party\activator&lt;/exclude&gt;
    &lt;exclude&gt;apps\temp&lt;/exclude&gt;
    &lt;exclude&gt;apps\xender&lt;/exclude&gt;
&lt;/excludeList&gt;
</code></pre>

<p></p>
