The DocumentBuilderFactory.setNamespaceAware(true) was already set.
As you said, I replaced the two lines:
> Element element = doc.createElement("WozRequest");
> element.setAttribute("action", "value");
by:
> Element element = doc.createElementNS(null, "WozRequest");
> element.setAttributeNS(null, "action", "value");
and now it works.
Thank you a lot!
David