users@jaxb.java.net

_at_XmlSchema on a class - why not?

From: Dmitri Colebatch <dim_at_colebatch.com>
Date: Fri, 28 Sep 2007 13:59:53 +1000

Hi all,

I have a package that is predominantly mapped to one namespace and so
we use @XmlSchema on the package-info file. We then have two classes
that are mapped to another schema and currently need to put namespace
in each and every @XmlElement declaration.

What I'd like to do is put @XmlSchema at the class level and have that
override the one at the package level. This isn't possible at the
moment but I see no reason why it couldn't be done. Any thoughts?

cheers,
dim