Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need to Merge two Xml files, having same structure, using java.

i'm in need to merge two Xml files.....

Example,

File1:

<root>
<a>
 <b/>
</a>
</root>

File2:

<root>
<a>
 <c/>
</a>
<d/>
</root>

output:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<a>
 <b/>
 <c />
</a>
<d />
</root>

thanks & regards

rajesh...

Former Member
Not what you were looking for? View more on this topic or Ask a question