users@jaxb.java.net

Re: Currently generating no-namespace XML with JAXB annotations, need to move towards using namespace and schema

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sun, 20 Dec 2009 19:58:29 +0100

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