pskc

Java DOM XML is skipping xmlns properties

Hi there, I need to generate an xml file in Java, so I chose to use DOM (until there everything is ok), here is the root tag of what i need to create <?xml version="1.0" encoding="utf-8"?> <KeyContainer Version="1.0" xmlns="urn:ietf:params:xml:ns:keyprov:pskc:1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.o...

XPath Transform messes up with xmlns

Hi, I'm making a tool to create some xml files signed, and I need to use an XPath so my sign doesn't sign itself : <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116"&gt; <ds:XPath>not(ancestor-or-self::ds:Signature)</ds:XPath> </ds:Transform> <ds:Transform Algorithm="http://www.w3....