Java Mailing List Archive

http://www.junlu.com/

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

[jdom-interest] Signing a JDOM Document

Alistair Young

2004-12-01


Interesting follow on from my xmlns="" "problem". It's easily solved in
JDOM by creating Elements with a namespace but the following is a
problem now:
1) Convert JDOM -> org.w3c.dom.Document
2) Sign w3c Document
3) Convert org.w3c.dom.Document -> JDOM

3) causes the problem to reappear as <ds:Signature> is affected by
presumably the Content cloning and adding? The end result is all
"namespace scoped" elements, i.e. that are associated with a default
namespace in their parent element, have xmlns="" added. Including the
<ds:Signature> !

Am I doing something wrong?

Alistair

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.