sequence inside a choice

2 views
Skip to first unread message

Ryan

unread,
Jun 19, 2008, 3:59:31 AM6/19/08
to XML Schema
Is it legal to have something like:
<xs:complexType name="transaction">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="account_login"
type="login_data" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="create_id"
type="tbl_iv" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="org_create"
type="org" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:choice>
</xs:complexType>

Notice how there is a sequence inside a choice and nothing else.

Also, what do the minOccurs/maxOccurs modifiers do on the choice and
sequence grouping?
Reply all
Reply to author
Forward
0 new messages