Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Merging multiple xml files

843834Mar 15 2002 — edited Mar 20 2005
How can I merge multiple xml files into one? In my project I am going to be getting
multiple xml files back from differenct locations. What I want to do is combine the xml files into
one and then stuff that through an xslt translation.

Here is an example, say I have
Two xml files:

file a
<fa>
<a name="a1"></a>
<a name="a2"></a>
<a name="a3"></a>
<a name="new"></a>
</fa>

file b
<fb>
<a name="a1"></a>

<a name="a3"></a>
<a name="a4"></a>
</fb>

required output
<res>
<a name="a1"></a>
<a name="a2"></a>
<a name="a3"></a>
<a name="a4"></a>
<a name="new"></a>
</res>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2005
Added on Mar 15 2002
5 comments
390 views