The namespace-uri is now resolved explicitly before an attribute with a ...

...namespace or rather prefix is written. The previous code passed the prefix as first argument to the writeAttribute(namespaceURI, localName, value) method of javax.xml.stream.XMLStreamWriter, which results in a "javax.xml.stream.XMLStreamException: Prefix cannot be null" exception.

I'm not sure if I used the correct way to resolve the namespace uri?

I don't have signed the CA aggreement yet, but I am going to sign it in the next couple of weeks.

Best regards

Max