How to insert a xml node as first child in another xml document in java?
- by Jagadesh
for eg. root=
<root>
<param value="abc">
<param value="bc">
</root>
NodeToInsert= `<insert><parameterDesc>afds</parameterDesc></insert>`
The output should be =
<root>
<insert><parameterDesc>afds</parameterDesc></insert>
<param value="abc">
<param value="bc">
</root>