Subject:XML diff with optimize Change Description Author:BHagya Tangutur Date:29 Dec 2006 01:26 PM
my system:
Windows XP
Pentium 4.
2.8 GHZ
2.00GB RAM
In my XML document each node can have more than one child node with same type.If the order of child nodes changes in the document i do not want them to be displayed.Assuming this will be taken care by OptimizeChange Description option.
I would like to compare entities,attributes and references.
Every time i run the diff with the above optios stylus studio crashes.
I also selected the check box below to optimize for large documents with few changes.
I do not want to use default XML diff option because the diff do not give me right information because of change in order of nodes.It compares the nodes by indices and treats them as there are some changes to that.
When i ran these two files my cpu gone up to 98% and memory gone up till 140 MB.
Is there any way i can bump memory settings and try it.if so where can i find it and what need to be changed.
Subject:XML diff with optimize Change Description Author:Minollo I. Date:29 Dec 2006 09:00 PM
Thanks for your help, we fixed the crash. The fix will be available in the next update (next week, most likely).
However, you will not be able to ignore elements order. Both fast and optimal algorithms are designed to ignore the order of attributes but to consider relevant (as per the XML specs) the order of elements, so the following fragments will be considered different:
<xml>
<a/>
<b/>
</xml>
...and...
<xml>
<b/>
<a/>
</xml>
Turning on optimal algorithm (“Optimize Change Description” option on) just allows you to get transformation from source tree to target tree with minimal cost, where fast algorithm ("Optimize Change Description" option off) just gives you valid transformation from source tree to the target tree but no guarantee that at minimal cost.