Today I downloaded
Castor and tried the Source
Generator on a
schema I had available and it had
a problem with a
circular reference. Here are the two
elements:
<xsd:element name = "Levels">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref = "Level" minOccurs = "0" maxOccurs =
"unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name = "Level">
<xsd:complexType>
<xsd:sequence>
<xsd:element name = "Code" type =
"xsd:string"/>
<xsd:element name = "Description" type =
"xsd:string"/>
<xsd:element name = "FuelType" type = "xsd:boolean" minOccurs =
"0"/>
<xsd:element ref = "InventoryLevels" minOccurs =
"0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
The Source
Generator had a Stack Overflow Error.
Can you tell me if
Castor should handle this type of
schema? If not, how
can I accomplish this in another
way.
Thanks
______________________________
Ken
Ringeman
