View Single Post
  #1 (permalink)  
Old 11-14-2007, 06:19 AM
veera veera is offline
Member
 
Join Date: Nov 2007
Posts: 3
veera is on a distinguished road
How do merge two xml files into one xml?
Hi!,

I have tried to merge two xml files in to one xml file.
But, I didnt get correct solution. I am using java. Anybody have an
idea Please share your knowledge.

Thanks,
Veera


First.xml
--------
<?xml version="1.0" ?>
<book>
<bookid>IBBN-1290-8742</bookid>
<bookname>The Wings Of Fires</bookname>
<author>AbdulKalam</author>
</book>

Second.xml
--------
<?xml version="1.0" ?>
<book>
<bookid>IBBN-6280-6387</bookid>
<bookname>War and Peace</bookname>
<author>AntonBalaSingham</author>
</book>

Ouput.xml
----------

<?xml version="1.0" ?>
<result>
<book>
<bookid>IBBN-1290-8742</bookid>
<bookname>The Wings Of Fires</bookname>
<author>AbdulKalam</author>
</book>
<book>
<bookid>IBBN-6280-6387</bookid>
<bookname>War and Peace</bookname>
<author>AntonBalaSingham</author>
</book>
</result>
Reply With Quote
Sponsored Links