users@jaxb.java.net

Re: unmarshall an object from a org.w3c.dom.Document object

From: David Portabella <david.portabella_at_epfl.ch>
Date: Tue, 18 Mar 2003 20:23:11 +0100

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