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?
This is supposed to work correctly. Given the past record, I tend to
suspect an operator error + poor error message reporting from Xerces.
Please post the exact error messages. Also, please try running XJC with
the -nv option.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com