santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject XMLEnc omits xmlns attribute through canonicalisation?
Date Tue, 28 Aug 2007 16:49:41 GMT

I partially encrypt my document, i.e. the node set where this element is at 
the root,

<pdpa:message xmlns:pdpa="" pdpaId="pdpaId" 
protocol="PDP-A_1" type="DHComplete">

and encrypt it such that the original node set is replaced.

I can only decrypt if I include the xmlns attribute further up the tree in the 
original document, otherwise I get:

Exception in thread "main" The prefix "pdpa" 
for element "pdpa:message" is not bound.
Original Exception was org.xml.sax.SAXParseException: The prefix "pdpa" for 
element "pdpa:message" is not bound.

When I do so and decrypt it, I see that xmlns has been omitted:

<pdpa:message pdpaId="pdpaId" protocol="PDP-A_1" type="DHComplete">


I get the impression this is a canonicalization issue - true? How I go about 
it if I want to keep the attribute?


For contact details, please see

View raw message