Hi Tyna, I've just tried the example with the CVS version of Castor and it is working fine for me. Can you please post the code you are using?
Arnaud > -----Original Message----- > From: Tina Manoharan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 26, 2003 3:18 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Element -> ComplexContent -> Extension > > > > Hello All, > > There is an element "elem1" with complexType "type1" in > my schema as shown below: > > 1) > <xs:element name="elem1" block="#all"> > <xs:complexType> > <xs:complexContent> > <xs:extension base="type1"/> > </xs:complexContent> > </xs:complexType> > </xs:element> > > > 2) > <xs:complexType name="type1"> > <xs:sequence> > <-----elements & attributes----> > </xs:sequence> > </xs:complexType> > > > > Now, when I do > > XMLType xmlType = elementDecl.getType(); > > > The xmlType is "null". > > > However, if the schema is changed to: > > 1) <xs:element name="elem1" type="type1" block="#all"/> > > Then it works fine, I get the xmlType and it also identifies > as ComplexType. > > But, I would like to know if there is a way I can get > the complexType from the original schema. Please help > me with this problem. > > Thank you, > Tina > > ----------------------------------------------------------- > 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
