[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sequence of elements
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|