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