Apologies, seems to work fine, the output is confusing, an EntitledFidawaFeature was properly generated. Thanks, -Guillaume
________________________________ From: Jeudy, Guillaume (IT) Sent: Wednesday, January 31, 2007 4:27 PM To: '[email protected]' Subject: Very basic use of binding files (using castor 1.0.0) Hi, Until now I've been generating Java classes straight from XSD files. I tried doing a very simple mapping without success. <?xml version="1.0" encoding="UTF-8"?> <schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:element name="FidawaEntitledUser"> <xs:complexType> <xs:sequence> <xs:element name="KerberosID" type="xs:string"/> <xs:element name="Region" type="xs:string"/> <xs:element name="IsEntitledUser" type="xs:boolean" minOccurs="0" /> <xs:element name="FidawaFeature" type="FidawaFeatureType" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Exception" type="xs:string" minOccurs="0"/> <xs:element name="StackTrace" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="FidawaFeatures"> <xs:complexType> <xs:sequence> <xs:element name="FidawaFeature" type="FidawaFeatureType" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Exception" type="xs:string" minOccurs="0"/> <xs:element name="StackTrace" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="FidawaFeatureType"> <xs:sequence> <xs:element name="FeatureId" type="xs:int" /> <xs:element name="FeatureName" type="xs:string" /> </xs:sequence> </xs:complexType> </schema> binding file content: <binding xmlns="http://www.castor.org/SourceGenerator/Binding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.castor.org/SourceGenerator/Binding C:\\Castor\\xsd\\binding.xsd" defaultBinding="element"> <elementBinding name="/FidawaEntitledUser/FidawaFeature"> <java-class name="EntitledFidawaFeature"/> </elementBinding> <elementBinding name="/FidawaFeatures/FidawaFeature"> <java-class name="FidawaFeature"/> </elementBinding> </binding> I get the below output from source gen: [echo] Using binding file C:\jeudygui\fidalloc\dev\src\java/../xml/binding/fidawaEntitlements.xml [castor-srcgen] Using UNIX style line separation. [castor-srcgen] Processing C:\jeudygui\fidalloc\dev\src\xml\schema\fidawaEntitlements.xsd [castor-srcgen] No namespace declaration has been found for schema [castor-srcgen] * assuming default namespace of http://www.w3.org/2001/XMLSchema [castor-srcgen] Creating classes for: FidawaFeatures [castor-srcgen] Creating classes for: FidawaFeature [castor-srcgen] Creating classes for: FidawaFeatureType [castor-srcgen] Creating classes for: FidawaEntitledUser [castor-srcgen] Creating classes for: FidawaFeature Can anyone point me to what I could be doing wrong ? Thanks, -Guillaume -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

