Go Back   Scooter Forums > Beyond Compare 3 Discussion > Text Compare (2-way)
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 18-Apr-2012, 04:30 AM
Winjimon Winjimon is offline
Journeyman
 
Join Date: Apr 2012
Posts: 10
Default Poor XML comparison

I'm evaluating BC3 at the moment and the overall experience is positive.

I've been comparing some XML files the last few days and have been disappointed with the comparison results. It's related to automatic alignment. I simply delete a single XML block but the Diff result shows two edits. The alignment is getting confused by similar looking closing tag symbols. Manually aligning sometimes works around the issue (slow), other times even that does not work, with the comparison now showing a new third difference even though blocks are identical.

I have not attached a XML example file, however I think the issue is reproducible enough. Just grab one of your visual studio project files and delete some tags to simulate project changes.

To work around this issue I've:
1) Played with the alignment settings in options menu.
2) Selected XML for the file format, which did show correct syntax highlighting but nothing else.
3) Tried comparing using AraxisMerge and Diffuse, which both showed correct alignment and comparison.
Reply With Quote
  #2  
Old 18-Apr-2012, 09:11 AM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 6,825
Default

Hello,

When you played around with the Alignment settings, did you try the Alternate Alignment method? This is an entirely different algorithm that doesn't support closeness matching, is a bit slower, and is missing some other features, but sometimes shows results closer to other programs.

If you could send in sample files to support@scootersoftware.com it would be appreciated. We have a wide variety of XML sample cases and always appreciate more to test against as we improve/enhance this area. We do not use Visual Studio in office. If you email us, please include a link to this forum thread for our reference.
__________________
Aaron P Scooter Software
Reply With Quote
  #3  
Old 18-Apr-2012, 05:02 PM
Winjimon Winjimon is offline
Journeyman
 
Join Date: Apr 2012
Posts: 10
Default

Thanks Aaron, I will try to find a complex case, but if not, I'll send a simple repro for you to look at.

To any readers following at home, the other Diff/Merge programs I mention are ones I used to use and am dissatisfied with, which is why I'm here. BC3 looks to be both well featured and good value.
Reply With Quote
  #4  
Old 18-Apr-2012, 06:03 PM
Winjimon Winjimon is offline
Journeyman
 
Join Date: Apr 2012
Posts: 10
Default

Test case has been mailed, thank you.

I tried to reproduce the manual alignment case but could not. I think it occurs when I do not select the first possible line to align with. In this case BC3 correctly aligns from the later point, but does not look back to notice alignment could have started earlier as corresponding lines are now identical.
Reply With Quote
  #5  
Old 20-Apr-2012, 02:26 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 6,825
Default

Hello,

Thanks for the sample files. I've reproduced the alignment trouble you are seeing and emailed a follow-up about adding these to a list of test cases we have. Our current algorithm won't quite align these automatically as you expect, and would need manual tweaking to push different xml nodes, begin and end sections, into place.
__________________
Aaron P Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:39 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.