Not sure. Can you please create a Jira issue and attach a working XML
schema that I can use ot of the box to have the Java classes geenrated.
Regards
Werner
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??
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email