Hi All,
 
I have a problem with generating code from an existing schema file, the schema 
is of this form shown below.  The element name="op" shared by both complex types
causes a problem when running SourceGenerator, it gives the error:
Warning: A class name generation conflict has occured between element 
'complexType:platformOp/op' and element '/platformCheck/op'. Please use a 
Binding file to solve this problem.Continue anyway [not recommended] (y|n|?)

I checked the docs on use of binding files but could not come up with a syntax 
which solves this exact problem.
Any suggestions on how to fix the above error?  I cannot change the schema at 
all as it's already
been released.
 
Thanks a lot,
Sean 
 
..
<xs:complexType name="fileOp">

<xs:annotation>

<xs:documentation>Files logical operatations.</xs:documentation>

</xs:annotation>

<xs:sequence>

<xs:element name="file" type="cyms:fileEntryType" minOccurs="0" 
maxOccurs="unbounded"/>

<xs:element name="op" type="cyms:fileOp" minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

<xs:attribute name="type" type="cyms:opType" use="required"/>

</xs:complexType>

<xs:complexType name="platformOp">

<xs:annotation>

<xs:documentation>Platform logical operatations.</xs:documentation>

</xs:annotation>

<xs:sequence>

<xs:element name="platform" type="cyms:platformEntryType" minOccurs="0" 
maxOccurs="unbounded"/>

<xs:element name="op" type="cyms:platformOp" minOccurs="0" 
maxOccurs="unbounded"/>

</xs:sequence>

<xs:attribute name="type" type="cyms:opType" use="required"/>

</xs:complexType>

..

<<winmail.dat>>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to