Thank you very much for ur suggestion. I have created a jira issue and attached all necessary files.
Hoping to get the solution.Its very urgent. http://jira.codehaus.org/browse/CASTOR-2206 Mitesh51 wrote: > > I have xsd file which contains following portion and which is creating > problem while generating source. > > <element id="idp-idprod_Party" name="Party" > substitutionGroup="xbrli:tuple" nillable="true"> > <complexType> > <complexContent> > <restriction base="anyType"> > <choice> > <element ref="idp-ctctUS:ContactInformation" minOccurs="0" > maxOccurs="1" /> > <element ref="idp-ctctIntl:ContactInformation" minOccurs="0" > maxOccurs="1" /> > <element ref="idp-enumtype:ContactInformation" minOccurs="0" > maxOccurs="1" /> > </choice> > <attribute name="id" type="ID" use="optional" /> > </restriction> > </complexContent> > </complexType> > </element> > > I cannot change in xsd file. > > here 3 elements have same name ContactInformation with different namespace > but while creating class file it is giving > java.lang.IllegalArgumentException: Duplicate name found as a class member > for obvious reason bcoz it will try to create _contactInformation 3 times > and its not legal though it is having different namespaces. Binding.xml > was looking like a solution but still no success with that. I have tried > to use automaticConflictResolution but no joy. Is there any way?? > -- View this message in context: http://www.nabble.com/java.lang.IllegalArgumentException%3A-Duplicate-name-found-as-a-class-member-tf4677795.html#a13379432 Sent from the Castor - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email