Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
The xsd:all group requires that each element in the group must occur at most once, but that order is not important.
The xsd:choice group specifies that any one element from the group should appear. It can also be used to say that between N and M elements from the group should appear in any order.
The xsd:sequence group requires that each element in the group appear exactly once, in the specified order.
The xsd:sequence group requires that each element in the group appear exactly once, in the specified order.
<xsd:sequence>
<xsd:element name="ele1" type="xsd:string"
minOccurs="2" maxOccurs="unbounded"/>
<xsd:element name="ele2" type="xsd:string"/>
</xsd:sequence>
The xsd:sequence group requires that each element in the group appear exactly once(IN THE SCHEMA), in the specified order.
<xsd:sequence>
<xsd:element name="ele1" type="xsd:string"
minOccurs="2" maxOccurs="unbounded"/>
<xsd:element name="ele2" type="xsd:string"/>
</xsd:sequence>
<xsd:element name="ele1" type="xsd:string"
minOccurs="2" maxOccurs="unbounded"/>
<xsd:sequence>
<xsd:element name="ele1" type="xsd:string"
minOccurs="2" maxOccurs="unbounded"/>
<xsd:element name="ele2" type="xsd:string"/>
</xsd:sequence>
<xsd:element name="ele1" type="xsd:string"
minOccurs="2" maxOccurs="unbounded"/>
<xsd:element name="foo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="bar" type="xsd:string"/>
...
<xsd:element name="bar" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType
</xsd:element>
You've gotta fight it! Don't give in! Read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|