1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<?xml version='1.0'?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.castor.org/MasterTestSuite/xml/SourceGenerator/NestedGroup"
targetNamespace="http://www.castor.org/MasterTestSuite/xml/SourceGenerator/NestedGroup">
<xsd:element name="Report">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Invoice" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="Toy" type="xsd:string"/>
<xsd:sequence>
<xsd:element name="DVD" type="xsd:string"/>
<xsd:element name="Title" type="xsd:string"/>
</xsd:sequence>
<xsd:element name="Other" type="xsd:string"/>
</xsd:choice>
<xsd:group ref="shipAndBill" minOccurs='0' maxOccurs='unbounded'/>
</xsd:sequence>
<xsd:attribute name="Id" type="xsd:int"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:group name="shipAndBill">
<xsd:sequence>
<xsd:element name="shipTo" type="AddressType" minOccurs='0'/>
<xsd:choice>
<xsd:element name="CreditCard" type="xsd:boolean"/>
<xsd:element name="Check" type="xsd:boolean"/>
</xsd:choice>
<xsd:element name="billTo" type="AddressType" minOccurs='0'/>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="AddressType">
<xsd:all>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="Street" type="xsd:string"/>
<xsd:element name="ZipCode" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
|