Applications - Merging XML
The requirement to merge XML data sets is becoming widespread. DeltaXML provides a flexible solution, which can be adapted to different needs.
Comparing two XML files with DeltaXML generates a new delta file which contains all of the data from both files. In the delta, all the changes between the two files are also marked up with XML attributes or are enclosed in new XML elements. It is therefore quite simple to process this delta file and generate a merged version of the two files.
The key benefit of using the delta file to generate a merged file is that a decision can be made about exactly which parts of the original data should be included in the merged result. For example when merging two files A and B, this could be:
- all the data from either document, using the A file content where there is a conflict
- all the data from either document, using the B file content where there is a conflict
- all the data from either document, omitting the content where there is a conflict
- only the data that is the same in both documents
- only the data that is different in the two documents
Using DeltaXML it is even possible to apply different rules throughout your merge process, for example taking the A result in some elements and the B result in other places.
Further details of how DeltaXML can achieve this merge is provided in "How to ignore changes and how to merge XML data/documents". Please contact us for further support on your particular application.
