Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Compare two XML files

  Asked By: Adelisa    Date: Apr 17    Category: Java    Views: 2276
  

I'm building a software testing tool which must compare the
software database with the previous version of this software database.
These databases will be stored into XML files to compare them.

So, I'd like to know if someone had already to compare two XML
files and point their differences. How can I solve this without a
hard work?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Shobhana R.     Answered On: Apr 17

If you are trying to compare  two files, utilities like
diff are available to do that. That is if you want to
get a readout of where the files  are different (data,
whitespaces etc.)

If you want to know if the table structure has
changed, I guess this will be reflected as the nodes
in the XML. In this case, you have to use an XML
parser to do the trick. I think DOM parser (xerces)
should do for this purpose.

 
Didn't find what you were looking for? Find more on Compare two XML files Or get search suggestion and latest updates.




Tagged: