users@jaxb.java.net

Re: Help needed: multiples schemas

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Wed, 12 Apr 2006 08:02:30 +0100

Are all 5 schemas under different namespaces? If so, then you could
create a schema file which <import>'s the 5 others, and run xjc over that.

Jorge M. wrote:
> Hi,
> We currently use JAXB with about 5 different types of documents.
> We have defined 5 schemas. All of them are "small" schemas.
>
> a) Does anybody has pros/cons regarding the use of multiple schemas
> vs using a single schema with multiple roots allowed? I decided to use
> multiple schemas to keep them maintainable. (I don't have control over
> some of the schemas and they use the same element names but with
> different set of attributes and subelements. Creating a single schema
> may become difficult to maintain).
>
> b) I am calling xjc.bat 5 different times, therefore I get 5
> different ObjectFactory classes, each under a different java package.
> Is there a way to keep my 5 different schemas but get only a single
> ObjectFactory ?
>
>
> Thanks in advance
>
> -Jorge
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>