I already have an xml which looks like the below one
<school>
<data>
<marks name="Peter"/>
<marks name="John"/>
</data>
</school>
I need to write a java code so that the xml is appended with an entry
<marks name="Dave"/>
I already have an xml which looks like the below one
<school>
<data>
<marks name="Peter"/>
<marks name="John"/>
</data>
</school>
I need to write a java code so that the xml is appended with an entry
<marks name="Dave"/>