Results 1 to 2 of 2
  1. #1
    veera is offline Member
    Join Date
    Nov 2007
    Posts
    4
    Rep Power
    0

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

  2. #2
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    9

Similar Threads

  1. Merge Two Xml files ????
    By alwz_nikhil in forum XML
    Replies: 5
    Last Post: 01-18-2011, 09:18 AM
  2. Merge Sort in Java
    By Java Tip in forum Algorithms
    Replies: 0
    Last Post: 04-15-2008, 07:43 PM
  3. Merge 2 button become one
    By banie in forum AWT / Swing
    Replies: 1
    Last Post: 02-17-2008, 05:26 PM
  4. Merge Sort Help
    By Hollywood in forum New To Java
    Replies: 5
    Last Post: 01-30-2008, 03:26 AM
  5. PDF Split and Merge 0.7 beta 1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 06-24-2007, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •