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

RE: xml question regarding document comparing

  • From: Baudoncq Gert <Gert.Baudoncq@z...>
  • To: "'S.Watts'" <denniswatts2000@h...>, xml-dev@l...
  • Date: Tue, 03 Jul 2001 14:18:40 +0100

domhash
Hi Dennis,

Maybe this will help you. To be honest, it was something I learned during an
IBM seminar and which seems very usefull to me if you want to compare two
XML elements. I guess XMLDiff works the same way. I haven't tried it yet.
Here is the proposed solution:

There is something called the the DOMHash
(http://www.ymtech.co.kr/ref/cdrom/java/xml/xml4j/docs/domhash.html#Introduc
tion)
The DOMHash algorithm is part of the XML security suite. It generates a
unique hash value for all or part of an XML document.
This XML security suite is available at IBM's alphaWorks site
(http://www.alphaworks.ibm.com)

You could generate the DOMHash values for all the elements in your created
XML documents (how are you going to convert this non XML documents to XML
documents?)and compare them with the hash value of the same elements in your
document. You could write a script to replace or add an element if the hash
values don't match. 
Btw I don't know how it handles whitespace...

Regards,
Gert

-----Oorspronkelijk bericht-----
Van: S.Watts [mailto:denniswatts2000@h...]
Verzonden: maandag 2 juli 2001 21:08
Aan: xml-dev@l...
Onderwerp: xml question regarding document comparing


I have 3 documents from different companies which are their versions
of a legal document or rule.  I also have this official rule from a
governing body which needs to reflect the changes each company has put
forward.  I would like to turn each version into a xml document so I
can realize the differences each version has from the official rule. 
So I would like to create a master xml and compare it with one of the
versions.  After the two are compared the master xml needs to contain
the changes that were made.  I would like to create something that
would accomplish this rather than purchase something that would do
this for me.  I would appreciate any help you could offer that would
help me accomplish this, thanks.
dennis watts
denniswatts2000@h...



------------------------------------------------------------------
The xml-dev list is sponsored by XML.org, an initiative of OASIS
<http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: xml-dev-request@l...

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.