Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Compare two xml files [Thread Next] Re: Compare two xml filesTo: NULL Date: 2/8/2008 8:48:00 AM "Argus Rogue" <argusrogue@s...> wrote in message news:47ab9233$0$22831$4c368faf@r...... > Hello All, > > I am new to XML and I was wondering if there was a way to compare two xml > files o see if they are the same and if not then create an output xml file > that merges them together minus the duplication so that the end result > would be an output file that has both xml files data in it. > > Am I asking this right or can this be done? > > Thanks in advance > > Argus > I'm sure there are tools to do this, search for XML files difference (XmlDiff rings a bell). What you might need to avoid is standard file compare tools as they work at too low a level. For example <x a="b"/> compared to <x a='b' /> would have two differences at a file level but none at the XML infoset level. If the XML file always has the same structure then it should be straightforward to write an XSLT that will do the job. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
