I have 2 XML files as follows:
reference.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>Angels & Demons</name>
<isbn>9971-5-0210-0</isbn>
<category></category>
</book>
comparison.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<isbn>9971-5-0210-0</isbn>
<author>Dan Brown</author>
<category></category>
</book>
As you can see, there are tags in reference.xml that do not exist in comparison.xml and vice versa
I wan an output xml file of both files integrated as follows:
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>Angels & Demons</name>
<isbn>9971-5-0210-0</isbn>
<author>Dan Brown</author>
<category></category>
</book>
I tried using XML unit (totally new in it) .. it's good in detecting the difference but not for integration .. so can you give me any ideas and whether I should use XML unit any further?