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

RE: Canonical XML


canonical xml utility download
I still use a slightly adapted version of James Clark's XMLTest:

http://www.jclark.com/xml/XMLTest.java

It outputs James' version of Canonical XML rather than the official version,
but this is fine for comparing two documents. (When James says his code
isn't written with performance in mind, he means it only runs twice as fast
as other people's, not ten times as fast. Remember that he's English.)

In another test suite I use the XPath 2.0 deep-equals() function.

What neither of these do is tell you where the differences are: they just
return a boolean yes/no answer.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Fraser Goffin [mailto:goffinf@h...] 
> Sent: 22 October 2005 19:45
> To: xml-dev@l...
> Subject:  Canonical XML
> 
> Does anyone know of a good implementation for producing 
> canonical XML (as 
> per W3C spec) ?
> 
> Basically I need to be able to compare to XML instances and 
> be able to 
> determine any differences that may be significant from a business 
> stand-point. That is this difference is *NOT* significant 
> <node></node> vs. 
> <node/>, but this might be <sumInsured>1000</sumInsured> vs. 
> <sumInsured>1000000</sumInsured>. So I need to be able to find any 
> differences then execute rules to determine whether the 
> differences are of 
> interest.
> 
> I had thought about running each instance through a 
> canonicalisation process 
> similar to what might be required in dig sig checking and 
> then comparing the 
> results ??
> 
> In my case, one instance document will be coming in on an 
> inbound HTTP 
> request and the second I will drag out of a state store. The 
> point here is I 
> need something I can integrate into my processing rather than 
> just a file 
> based or command line utility.
> 
> The programatic environment is predominatly Java based, and 
> needs to run on 
> a variety of platforms. It may be that more than one 
> technology will be 
> needed for each aspect (compare, rules).
> 
> Appreciate any guidance
> 
> Fraser.
> 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
> 



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.