Help !!!

Hello,
Below i am trying to sat a Match element can contain each of its child
elements in any order, but each child element also has restrictions i.e. a
team can only appear twice. I tried the below, but as i have learnt xs:all
only allows 0 or one as values. Has anyone any ideas on how to get around
this?
Cheers
Andrew Curry

example:

<xs:element name="Match">
   <xs:complexType>
    <xs:choice>
     <xs:element ref="Team" minOccurs="0" maxOccurs="2"/>
     <xs:element ref="Officials" minOccurs="0"/>
     <xs:element ref="Event" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element ref="TextFeed" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element ref="MatchStats" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element ref="Ratings" minOccurs="0" maxOccurs="unbounded"/>
    </xs:choice>
    <xs:attributeGroup ref="id"/>
   </xs:complexType>
  </xs:element>

Received on Monday, 29 July 2002 18:00:03 UTC