Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

XML diff

Thread view: 
cdvr - 24 Jun 2007 22:34 GMT
I have to find or write some code to perfrom a diff between two XML
files.  In particular they will most likely be RSS feeds, where the
first time viewing a feed I'd get the whole RSS XML, but on additional
viewings of a the same feed I would only get/store the difference from
the first time.

Anyways, I have found a few samples that do a diff on XML files (or
just any text file)....but they only display the lines that change,
they don't say what part of a line has changed.  Just curious if
anyone has a solution or knows of any before I work on re-creating the
wheel :)

thanks
Sideswipe - 12 Jul 2007 00:31 GMT
I ran into this exact situation before. I was trying to create a test
case for validating an XML Serialization engine. Problems to consider:
Is Tag order important to "equality"? If it is, then the tag's have to
be ordered and you have to define the ordering on them. You should
still sort them to make defining equality simpler. Oh, and don't
forget the numerous subelements to invoke "equality" on as it defines
your own.

It can be done, but I haven't found an automated way to compare them
in a "smart" way like this.

Christian Bongiorno
http://christian.bongiorno.org

> I have to find or write some code to perfrom a diff between two XML
> files.  In particular they will most likely be RSS feeds, where the
[quoted text clipped - 9 lines]
>
> thanks


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.