XMLMerge is simple tool to merge multiple xml files.
pip install xmlmerge
$xmlmerge file1.xml file2.xml > file3.xml
$xmlmerge tests/*.xml > combine.xml
<products>
<product id="9999">
<a>1234</a>
<b>1234</b>
</product>
<product id="5678">
<a>1234</a>
<b>1234</b>
</product>
</products>
Contact Kiran Kumar Kotari kirankotari@live.com with any suggestions or comments. If you find any bugs please fix them and send me a pull request.