Mutually exclusive elements

>Hi
>
>Is it possible to define elements that are mutually exclusive? In the
>following example I want either <purchase> or <airline> to occur in
><transaction> (or none of them).
>
>If its possible, could somebody show me how, or give me some hints/tips?
>
>
><xsd:element name="transaction">
><xsd:complexType>
><xsd:sequence>
><xsd:element ref="transaction_type"></xsd:element>
><xsd:ele......
><xsd:ele......
><xsd:ele......
><xsd:ele......
><xsd:element ref="purchase" minOccurs="0"></xsd:element>
><xsd:element ref="airline" minOccurs="0"></xsd:element>
></xsd:sequence>
></xsd:complexType>
></xsd:element>
>
>Sincere regards
>Torbjørn Pehrsen
>Europay Norge AS
>Phone:   		+47 22 98 11 45
>Fax:         		+47 22 98 11 30
>Mobile:   		+47 98 21 11 45
>Postal address:	P.O. Box 1466 Vika, N-0116 Oslo, Norway
>Visiting address:	Holbergsgt. 21, Oslo
>

Received on Tuesday, 20 November 2001 04:38:39 UTC