OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Comparing 2 xml files

[ Lists Home | Date Index | Thread Index ]
  • From: Ray Whitmer <ray@xmission.com>
  • To: tmmet tvp <tmmet@hotmail.com>
  • Date: Fri, 11 Feb 2000 10:42:37 -0700 (MST)

I am not aware of such a function.  I am interested in your question
as a possible DOM requirement, so I'd ask for clarification on a few
details:

Would like DOM to have some type of optimized "equals" function, or 
would you prefer a stand-alone function able to make this 
determination strait from the files without building a DOM hierarchy?

Presumably just using a standard diff utility is not enough, so you
would probably like some kind of normalization like canonical XML.
Depending upon the degree of normalization required, building a DOM
might be easiest.  If you want white space normalization in mixed 
content, then your requirements become application-specific.

Do you need to be able to diff arbitrary subtrees of a document, or
just the entire document?

Is simple equals / not equals enough, or do you need to identify
specific differences, and if so, how do you choose the granularity
or scope of the differences, and the identity of the next non-differences.

Ray Whitmer
ray@xmission.com

On Thu, 10 Feb 2000, tmmet tvp wrote:

> Hi,
> Is there any strainght function/method to compare 2 xml files...
> Instead of traversing the entire tree using DOM....Any ideas/suggestions 
> will be greatly helpful for me...Thanks in advance...
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS