How does DeltaXML find the best match between elements?
At first it looks for keys that correspond and matches these. The Enhanced Matcher (which is on by default but can be turned off) then uses the text (PCDATA) to determine the best alignment between elements in the two documents – this works particularly well for XML files representing documents rather than data. After that stage, it looks for whole elements (including their attributes and content) that are equal and matches these. Finally it matches elements with the same type and then proceeds down the tree to find where there are differences. Specialist algorithms are used to find the best match at any level in the files.