[
Lists Home |
Date Index |
Thread Index
]
Just nest a choice in a sequence like:
<xs:element name="lala">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:choice>
<xs:element name="foo"/>
<xs:element name="bar"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
Stamatis Karbounarakis wrote:
> Hello. Is it possible to have an number of elements in an arbitrary
> sequence an arbitrary number of times?I mean, for an xml like this
>
> <lala>
> <foo/>
> <foo/>
> <bar/>
> <foo/>
> <boo/>
> </lala>
>
> I want any possible sequence of foo,bar and boo in the xml any possible
> number of times. How do I write the xsd for this? Is it possible?
>
> Thanks a lot!
>
> Stam
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>
>
--
Manos Batsis
Netsmart S.A.
Snail mail:
Panepistimiou 58,
10678, Athens, Hellas
URL: http://www.netsmart.gr
Email: mbatsis at netsmart dot gr
Tel: (+30) 210 33 02 608
Fax: (+30) 210 33 02 658
FOAF: http://forte.netsmart.gr/foaf/manos_foaf.rdf
|