What you have will make five choices. What you want is (replace
min/maxOccurs with whatever boundaries you need):
<xs:choice>
<xs:element name="Foo" type="bar" minOccurs="5" maxOccurs="5"/>
<xs:element name="Foo1" type="bar" minOccurs="5" maxOccurs="5"/>
<xs:element name="Foo2" type="bar" minOccurs="5" maxOccurs="5"/>
</xs:choice>
--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
<ho*****@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Given:
<xs:choice maxOccurs=5>
<xs:element name="Foo" type="bar" />
<xs:element name="Foo1" type="bar" />
<xs:element name="Foo2" type="bar" />
</xs:choice>
Is the choice made once and then the choosen element can occur 5 times,
or is the choice made once for each occurance?
I'm looking for the first behavior, choose once, then allow the choosen
element 5 times. I'm not sure how to get that..