<xsd:complexType name="nameType">
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="firstName" type="xsd:string"/>
<xsd:element name="middleName" type="xsd:string"/>
<xsd:element name="lastName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
By adding the maxOccurs attribute, you allow for the following structure to occur in the document instance:
<firstName>A</firstName>
<middleName>B</middleName>
<lastName>C</lastName>
<firstName>D</firstName>
<middleName>E</middleName>
<lastName>F</lastName>
<firstName>G</firstName>
<middleName>H</middleName>
<lastName>I</lastName>
|