Hi Arnaud, Apologies for my lack of understanding.
I've reduced my schema to the smallest possible test and I still don't understand the results I am getting :( <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema"> <element name="A"> <complexType> <sequence> <element name="b" type="C"/> </sequence> </complexType> </element> <complexType name="C"> <sequence> <element name="d" type="string"/> <element name="e" type="string"/> </sequence> </complexType> </schema> I would expect this to generate 2 classes: ------------------------------------------------ Class A contains a variable called _b which is of type C ------------------------------------------------ ------------------------------------------------ Class C contains two variables called _d and _e which are of type String ------------------------------------------------ Instead I get the following: ------------------------------------------------ Class A: contains a variable _b of type B ------------------------------------------------ ------------------------------------------------ Class B extends C contains no variables ------------------------------------------------ ------------------------------------------------ Class C: contains 2 String objects, _d and _e ------------------------------------------------ Class C is as I expected (in the schema, it only contains built-in schema types) I have no idea why class B extends class C. I am using Castor 0.9.3 with the default castorbuilder.properties Could some kind person please send me a working example of how to create a complexType that contains sub elements that are complexTypes? Thanks, Chris > -----Original Message----- > From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] > Sent: 15 March 2002 13:39 > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] SourceGenerator produces incorrect parameter > types? > > > Hi Chris, > > When you specify 'type="Descriptor"', it means that you want the type of > your element to be a simpleType or a complexType named Descriptor not an > element. > Just define a complexType for Descriptor and all will be fine. > > Arnaud > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
