File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Canonical Form of XML Message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Canonical Form of XML Message" Watch "Canonical Form of XML Message" New topic
Author

Canonical Form of XML Message

Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
Can anyone tell me (or point me to an article that tells me) how to produce a canonical form of an XML message. I need to do this before I produce a public / private key pair signature for the message.

If anyone knows of a good article on Canonical form I would be interested in that too. The only document that I have managed to find is the W3C white paper and that is completely illegable.

Thanks in advance,
Adrian
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Maybe this article is more comprehensible.

Please do not post the same question to more than one forum, as you have done here. It leads to duplicated efforts.
[ December 15, 2005: Message edited by: Ulf Dittmer ]

Android appsImageJ pluginsJava web charts
Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
Thanks, thats a much better article.

Now I just need to know how to do it in Java. Anyone any ideas?

Adrian
Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
One of the obvious approaches to this problem would be with an XSLT stylesheet and perform a transform on the XML. Anyone know where I might find a stylesheet for this? I can't help feeling that this is a standard transform and that there therefore should be a standard stylesheet for it.


Adrian
Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
Someone has posted what looks like an answer to this question over on the server side forum here:

http://www.theserverside.com/discussions/thread.tss?thread_id=38100

I still have a question about the different types of the canonical form. I have added this to the same thread on the Server Side forum so please check out the above link.

All help still grateful received.

Adrian
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Canonical Form of XML Message
 
Similar Threads
XML canonicalization and Diff algorithm
XML attributes serialization
Producing Canonical Form of XML Message
Real fuzzy on diff. between canonical vs. absolute
Consumer + intermediary + Provider = digest value mismatch