Go Back   Scooter Forums > Beyond Compare 3 Discussion > Other Session Types
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 21-Dec-2011, 01:35 PM
adlan adlan is offline
Visitor
 
Join Date: Aug 2011
Posts: 3
Default Suggested feature -XML data file compare

Generally Beyond compare does a really good job at comparing XML files like web.configs where there isn't much repetition in the file. However when the two XML files you are trying to compare are XML data files, with a large number of very similar nodes, I think it would be useful to be able to define keys like you can in an XML schema - ie specify a selector and a field, which are two xpaths, one xpath that selects all the instances of the data element you want to compare, and one that specifies the unique field or primary key. This would be very flexible in that you could compare only the nodes you were interested in, and it would dramatically improve the matching between nodes. You can already define keys for other types of data file, which is very useful, and Ithink this would be a good extension of existing functionality.
Reply With Quote
  #2  
Old 21-Dec-2011, 01:58 PM
bcoldtimer bcoldtimer is offline
Enthusiast
 
Join Date: Oct 2010
Posts: 36
Default

I have a similar but may be not completely related question. I got some xml files that has all the data field in one line, i.e. no line break between data entries. In this case it would be nice to separate the data entries into different lines in the comparator as opposed to maintaining everything in the same line, making selective copying very cumbersome.
Reply With Quote
  #3  
Old 22-Dec-2011, 03:45 AM
adlan adlan is offline
Visitor
 
Join Date: Aug 2011
Posts: 3
Default Dealing with a single line XML file

Hi bcoldtimer,
You can use the 'XML Tidied' plugin to indent a single line xml file into multiple lines. This plugin can be downloaded from the download section of the homepage. It uses HTML tidy (http://tidy.sourceforge.net )
Reply With Quote
  #4  
Old 22-Dec-2011, 02:07 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 6,825
Default

Hello,

In addition to adlan's comments:
A more direct link to our download page is here:
http://www.scootersoftware.com/downl...kb_moreformats

XML tidied and XML Sorted and Tidied are in the Alternatives section.
__________________
Aaron P Scooter Software
Reply With Quote
  #5  
Old 22-Dec-2011, 02:08 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 6,825
Default

Hello,

Expanding on our XML support is something on our Customer Wishlist. Do you have any sample files you could email in, letting us know which line numbers you'd expect to line up or how you'd like to define a schema? Please email support@scootersoftware.com and include a link back to this forum post (for our reference).
__________________
Aaron P Scooter Software
Reply With Quote
  #6  
Old 23-Dec-2011, 08:21 AM
bcoldtimer bcoldtimer is offline
Enthusiast
 
Join Date: Oct 2010
Posts: 36
Default

xml tidied works great! Thanks!
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.