users@jaxb.java.net

Re: JAXB conversion of wildcard to DOM (<xjc:dom />) stripping out na mespace attributes

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 23 Jul 2003 14:43:06 -0700

"Geis, Matt" <Matt.Geis_at_schwab.com> wrote:
> Can anyone help out with this problem? I'm unmarshalling a document with an
> xsd:any block, and getting the contents as a DOM element. Unfortunately,
> when JAXB generates the DOM, it removes some of the namespace attributes,
> and moves others to different elements.

This is a bug. I'll see if I can find a workaround for this.

Even if we fix it, moving some of the namespace decls are unavoidable.
For example, if your XML document declares some namespaces at the root
element, your DOM node needs to carry those declarations around. Thus
such namespace decls need to be moved.

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