How to insert a xml node as first child in another xml document in java?

Posted by Jagadesh on Stack Overflow See other posts from Stack Overflow or by Jagadesh
Published on 2010-06-15T04:54:27Z Indexed on 2010/06/15 6:02 UTC
Read the original article Hit count: 202

Filed under:
|
|

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>

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml