Just repeat the <java></java> section for the 2nd schema but change the xsd name and 
possibly the package name if it is different.  If you are importing one schema into 
another, you can just generate the main schema and add the option 
"generateImportedSchemas" to the SourceGenerator.

Robert
> 
> Hello, guys,
> 
> I have looked through samples generating source using
> ant task, all samples seem to only generate java
> source for one xsd file, such as the following:
> <target name="srcgen" depends="clean"
> description="srcgen">
>   <java classpathref="base.path"
> classname="org.exolab.castor.builder.SourceGenerator"
> fork="true">
>    <arg value="-i" />
>    <arg value="ship.xsd" />
>    <arg value="-package" />
>    <arg value="com.u2d.shipgen" />
>    <arg value="-types" />
>    <arg value="j2" />
>    <arg value="-dest" />
>    <arg value="src" />
>   </java>
>  </target>
> 
> Could anyne who has done this advise me on how I
> generate java source with multiple xsd files?
> 
> thanks
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev
> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to