users@jaxb.java.net

Re: marshal to dom

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 28 Jan 2003 09:27:06 -0800

> DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
> Document doc = db.newDocument();
> org.w3c.dom.Element root = doc.createElement("Root");
> m.marshal(o, root);

I think you might need to turn on the namespace by something like

    db.setNamespaceAware(true);


regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com