Lists Home |
Date Index |
- From: Ray Whitmer <firstname.lastname@example.org>
- To: tmmet tvp <email@example.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
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.
On Thu, 10 Feb 2000, tmmet tvp wrote:
> 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