What's the Diff? Diff XML Documents
I just tried that IBM Java utility on the command line of a Linux system. Not bad.
I only tried it on a rather simple example, where I removed a single element.
Looks like you better run the command twice, with permuted arguments.
I worked on an XML diff tool, first in Perl then later in Java. It's a non-trivial problem. These days, I mostly use DeltaXML's product which works really well.
ReplyDeleteThanks a lot, Norm, I appreciate your hint!
ReplyDeleteI guess, I will have a serious need for a good utility, as I am working on a tool, that generates XML, and somebody else insists on editing that generated XML, so I will have to diff them, and only, if I am very lucky, they are easy to compare.