[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Comparing 2 xml files

  • From: Ray Whitmer <ray@x...>
  • To: tmmet tvp <tmmet@h...>
  • Date: Fri, 11 Feb 2000 10:42:37 -0700 (MST)

compare 2 xml files
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@x...

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
> 
> 


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.