PHP Merge XML is a class that can merge XML documents from strings, files, or DOM objects. The resulting document can be searched using a XPath query string or returned as a string or a DOM object. It provides options to control whether the nodes with the same path or name are replaced or added sequentially.