Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Canonical Form of XML Message

 
Adrian Bates
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Adrian Bates
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic