You must enable the DocumentBuilderFactory to be namespace aware before
parsing the document, add this line:
factory.setNamespaceAware(true);
--Sean
Björn-Peter Tietjens wrote:
Hi,
I am encrypting xml using the sample code.
But I have a problem decrypting it.
I have a String representation
Hi,
I am encrypting xml using the sample code.
But I have a problem decrypting it.
I have a String representation of the encrypted xml: see below
I want to get a org.w3c.dom.Document representation by parsing that
String and then decrypt the Document as in the sample code:
public Document get
Hi
sry got confused with the key...
now it works...
Cheers
BT
Björn-Peter Tietjens schrieb:
Hi,
i keep getting the exception:
13:34:52,400 ERROR Encrypter:178 -
org.apache.xml.security.encryption.XMLEncryptionException: Invalid key
length: 16 bytes(Invalid key length: 16 bytes)
i use