tags:

views:

661

answers:

1

Hi guys, this is my situation:

I have two org.w3c.dom.Document created from two xml files. What I want to obtain is brand new Document containing all the data of the two xml Document.

Do you have any idea on how to do this?

Thanks! Rob

+1  A: 
  • create a new document
  • create a new root called newRoot
  • add the first document root as child of newRoot
  • add the second document root as child of newRoot
dfa