Tina Ang - 2003-10-08

Hello! I'm trying to use the DetailedDiff class to return all the differences between 2 xmlstrings. However, the list returned by the its getAllDifferences() method does not return new, deleted and amended nodes. Please refer to example below:

xml string 1
<node name="Europe">
     <node name="UK" data="id=1"></node>
     <node name="France" data="id=2"></node>
</node>

xml string 2
<node name="Europe">
     <node name="UK" data="id=1"></node>
     <node name="Germany" data="id=3"></node>
     <node name="France" data="id=2"></node>
</node>

the getAllDifferences() method states that France was changed to Germany but in this case germany was just inserted (a new node).  I really need to get all the differences from the 2 strings.

Please help!

Thanks,

Tina