All,
a question to the c14 gurus on the list.
I set up an Element node and set the default namespace
to "" using the following code:
elem.setAttributeNS(WSConstants.XMLNS_NS, "xmlns", "");
This seems to work.
The element is c14n'ed using the following code:
XMLUtils.circumventBug2650(elem);
/*
* C14n with specified algorithm. According to WSS Specification.
* c14n algo is: c14n ExclOmitComments
*/
buf = canon.canonicalizeSubtree(doc, "#default");
After this the xmlns="" is gone, at least when I convert the
buf to String and print it I don't see a xmlns="" at the
elements.
What is wrong with the above?
Regards,
Werner