Hi All, I am trying to use the SourceGenerator to generate Java code for 2 classes into 2 different packages by defining them as elements in the same XML schema:
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.foo.com/bar" xmlns:bar="http://www.foo.com/bar" xmlns:baz="http://www.foo.com/baz"> <!-- ============================================== --> <!-- ============================================== --> <element name="BarType"> <complexType> <sequence> <element name="name" type="string"/> <element ref="baz:BazType"/> </sequence> </complexType> </element> <!-- ============================================== --> <!-- ============================================== --> <element name="BazType"> <complexType> <sequence> <element name="name" type="string"/> </sequence> </complexType> </element> <!-- ============================================== --> <!-- ============================================== --> </schema> castorbuilder.properties: # XML namespace mapping to Java packages # org.exolab.castor.builder.nspackages=\ http://www.foo.com/baz=foo.baz,\ http://www.foo.com/bar=foo.bar When I run the SourceGenerator, I get the exception: Exception in thread "main" java.lang.IllegalStateException: Unable to find element referenced :" baz:BazType" Can anybody see a problem with the above code? Thanks, Chris mailto:[EMAIL PROTECTED] emorphia Ltd, Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK. Tel: +44 (0) 1279 450100 Fax: +44 (0) 1279 450102 http://www.emorphia.com Registered in England � 4133002 This message may contain information proprietary to emorphia so any unauthorised disclosure, copying or distribution of its contents is strictly prohibited. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
