Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] JDOM Canonicalization

Per Norrman

2004-06-24


Hi,

referring to our recent discussion of canonical XML output from
a JDOM tree, I've implemented a Canonicalizer for JDOM Documents.

It borrows code from the XMLOutputter and NamespaceStack. Elliotte's
XOM Canonicalizer has been inspirational, as well.

Consider this alpha code. There is an embryo for a more exhaustive
and automated test suite. The test data is taken from section 3 of the
Canonical XML spec (http://www.w3.org/TR/xml-c14n).

Enjoy!

/pmn

Attachment: jdom-c14n.zip
©2008 junlu.com - Jax Systems, LLC, U.S.A.