[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Version Control of XML data

From: Dave Pawson <dave.pawson_at_gmail.com>
Date: 2005-09-07 13:35:47 CEST

On 07/09/05, Ryan Schmidt <subversion-2005@ryandesign.com> wrote:

> > For example, many XML tools like to sort attributes. Two documents
> > with identical content will be determined to have many differences
> > by traditional tools because the atttributes have been reordered.
> You could build functionality into your wrapper script to normalize
> your XML files into a predictable format. If the tools you use like
> to write entries in an unpredictable order, for example, then your
> wrapper could sort the entries before doing anything. That would make
> the diff make sense again, and show only real differences.
Except for whitespace handling in XML.
XML diff tools are really a long way from text file diff tools.
There is quite a history of this on xml-dev list.

> > If I configure subversion to use external differencing tools, will
> > it use these exclusively for all operations involving differences?

> No, Subversion always uses its internal differencing engine to store
> diffs. Specifying alternate diff tools is solely for your benefit
> when you're examining files.

Which makes it unsuitable for handling XML files, if a diff is needed?

http://www.jclark.com/xml/ has xmltest.java which provides
a cononical version of an instance.
It may help.

Dave Pawson
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 7 13:37:43 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.