Hello everyone, i'd like to know how can I merge 2 xml files into one using jdom.
The 2 xml files have the same structure.
file1.xml:
<results>
<book>
<title> hello1</title>
<author< celia1</author>
</book>
</results>
file2.xml
<results>
<book>
<title> hello2</title>
<author< celia2</author>
</book>
</results>
I would like to obtain one file containing:
<results>
<book>
<title> hello1</title>
<author< celia1</author>
</book>
<book>
<title> hello2</title>
<author< celia2</author>
</book>
</results>
Thank you for your help!!
The 2 xml files have the same structure.
file1.xml:
<results>
<book>
<title> hello1</title>
<author< celia1</author>
</book>
</results>
file2.xml
<results>
<book>
<title> hello2</title>
<author< celia2</author>
</book>
</results>
I would like to obtain one file containing:
<results>
<book>
<title> hello1</title>
<author< celia1</author>
</book>
<book>
<title> hello2</title>
<author< celia2</author>
</book>
</results>
Thank you for your help!!
Comment