> 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