PHP Merge XML

This class can merge XML sources from strings, files or DOM objects.
It can take a XML document from a string, a file or a DOM object tree and merges with another XML document.
The resulting document can be searched using a XPath query string or returned as a string or a DOM object.
This class provides options to control whether the nodes with the same path or name are replaced or added sequentially.