dev@jaxb.java.net

Nested Includes

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

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