cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

have a look in the Java World in this thread : [XML merging made easy|http://www.javaworld.com/javaworld/jw-07-2007/jw-07-xmlmerge.html]

Best regards,

Mathieu

PS : reward points if helpfull

Former Member
0 Kudos

hi,

i already cross all the sites, but still i'm not clear.....