include a package-info.java file in the package your annotated classes
are and then define the xml namespace in this file...
an example:
http://kenai.com/projects/puj/sources/arena/content/arena-model/src/main/java/com/kenai/puj/arena/model/entity/package-info.java
JAXb will detect this configuration automatically....
On Sun, Dec 20, 2009 at 7:22 PM, KARR, DAVID (ATTCINW) <dk068x_at_att.com> wrote:
> I'm currently using CXF and Spring to implement a REST server. I use
> the "@Xml" annotations on my domain objects to specify how to format the
> XML responses. I'd like to move towards having the XML specify a schema
> and namespace, and the schema obviously has to match what I'm specifying
> with annotations.
>
> Can someone point me to steps I need to take to move in that direction?
> I'm not familiar with the JAXB tools and detailed configuration that can
> help me with this.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
--
------------------------------------------
Felipe Gaścho
10+ Java Programmer
CEJUG Senior Advisor