how to add new element to the existing node in xml 
<p>i have an xml file like this.</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;imageset&gt;
&lt;category&gt;
&lt;image&gt;SQUIRREL&lt;/image&gt;
&lt;image&gt;FOX&lt;/image&gt;  
&lt;image&gt;TIGER&lt;/image&gt;    
&lt;image&gt;LION&lt;/image&gt; 
&lt;/category&gt;
&lt;/imageset&gt;  
</code></pre>

<p>Now i need to add another elemnt to the parent node imageset like this.
eg: i need to add <code>&lt;image&gt;DOG&lt;/image&gt;</code></p>

<p>
    
    
    SQUIRREL
    FOX<br>
    TIGER<br>
    LION
    <strong>DOG</strong><br>
    
     </p>

<p>i know that to get elements by node wise we need to use xml parse.</p>

<p>But i don't know to write element to the same xml file.</p>

<p>How can i done can any one please help me.</p>

<p>Thank u in advance. </p>
