View Full Version : Java code to compare XML files like ExamXML XML differencing tool
alapick
04-24-2007, 08:45 PM
I’m working on a Java project that includes identifying changes between XML files and I need a code to compare XML fragments.
I’m using differencing tool ExamXML from http://www.a7soft.com to compare and merge XML files but this is Windows application.
Dheerendra
06-01-2007, 05:34 AM
I faced a similar problem in one of my projects and hence wrote my own comparator. Most comparators like ExamXML etc show XML as different if the nodes under a parent node occur in different seqeunce or a set of repeated nodes occur in different sequence. The comparator that I wrote gives you the flexibility to configure how to identify a node from a set of repeated nodes and is able to compare them successfully if they occur in any order. You can view the sample output at http://geocities.com/dheerendra_itbhu/TipsFromDheeru.html
and contact me in case you need the source code.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.