dev@fi.java.net

Re: JAXB and Namespaces

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 15 Jun 2005 08:34:42 -0700

Paul Sandoz wrote:
> :-) yet it is really confusing.
>
> An example:
>
> <a xmlns:xml="http://...." xml:lang="en"/>
> ^
> |
> Will this ever get written out
> when 'a' and 'xml:lang' are bound by
> JAXB?
>
> I do not think it will, or i suppose it is up to the serialization
> implementation to make sure it does not.

Right. It shouldn't declare the xmlns:xml namespace (I think it's
illegal to use [Xx][Mm][Ll].* as a prefix)

But it sounds like a very likely bug in the JAXB RI...


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com