Hi It is not possible for castor to name an element and a type the same in XML Schema, but it is aloud to do it so in XML Schema. The Problem is, that Cas�tor fist generated the java fiels for the element "foo" and later he generates the java file for the ComplexType named "FOO" so in an not case sensitive environment like windows he overrides the first generated class.
Sample: [XSD] ... <xsd:element name="ContentType" type="CONTENTTYPE"/> ... <xsd:complexType name="CONTENTTYPE"> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="tc" use="required"> <xsd:simpleType> <xsd:restriction base="ACORD_TYPE_CODE"> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:extension> </xsd:simpleContent> </xsd:complexType> ... [/XSD] So first the "element class" is generated an later this class is overwritten by the "complexType class". The Problem is that it is not possible to change the types used in this XSD because it's part of standard schema for XMLife which is an XML Standard for insurance provider so I have to use this xsd in the original version. regards, -- Andy _____________________________________________________________________ Extra-Konto: 2,50 %* Zinsen p. a. ab dem ersten Euro! Nur hier mit 25 Euro-Tankgutschein & ExtraPramie! http://extrakonto.web.de/?mc=021110 ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
