XSD Self Referencing issues



we're creating our own schema from an OData xml to make it more simpler and generic to be able to use by our partners. however, I stumble on this issue where its calling its own type (self referencing) and i cant figure out a way to go around this issue,.. here's the snippet, any thoughts?



<xsd:element name="User" type="userType"/>
<xsd:complexType name="userType">
<xsd:all>
<xsd:element name="customManagerList">
<xsd:annotation>
<xsd:documentation>Custom Manager</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="customManager" type="userType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:all>
</xsd:complexType>

No comments:

Post a Comment