dev@jaxb.java.net

Re: Nested Includes

From: Mathew Blackberry <mat_at_bookingtools.com>
Date: Sat, 02 Sep 2006 22:28:50 +1000

My apologies for writing to the wrong list.

Mathew Blackberry wrote:
> Hi,
>
> I have trouble binding java classes from my XML schema when there are
> mulitple levels of includes.
>
> Assuming I have 3 xsd documents
> a.xsd, b.xsd and c.xsd
>
> a.xsd has an <xs:include schemaLocation="b.xsd"/>
> b.xsd has an <xs:include schemaLocation="c.xsd"/>
>
> if I run
>
> >xjc.bat schema\b.xsd
>
> I get all classes generated as expected.
>
> but if I run
>
> >xjc.bat schema\a.xsd
>
> I get errors complaning that types specified in c.xsd can not be found.
>
> Is there a way I can get xjc to work with multiple levels of included
> schema files?
>
> Thank
>
> Mat
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: dev-help_at_jaxb.dev.java.net
>
>
>