users@jaxb.java.net

Re: xmlns:ns2 and friends

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 15 Nov 2006 17:41:03 -0800

Ernst, Matthias wrote:
> Johnny,
>
> You can implement a NamespacePrefixMapper and set it as a property
> (I think the key is com.sun.xml.bind.namespacePrefixMapper) on the Marshaller.

Yes. And you can look at namespace-prefix example in the RI.

> Kohsuke, can you make those constants public? I understand they're not part
> of the JAXB API, but of the RI, but I hate copying those strings out of the
> RI impl classes.

Indeed. I added NamespacePrefixMapper.PROPERTY.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com