![]() |
|
|
|
#1 |
|
XML XSD question
How to define a set of elements that could be in any order and can occur more than once?? Thanks a lot! mavis |
|
|
|
|
#2 |
|
Posts: n/a
|
"mavis" <> writes:
> How to define a set of elements that could be in any order and can > occur more than once?? You would use an unbounded choice of optional elements: <choice maxOccurs="unbounded"> <element name="a" ... /> <element name="b" ... /> <element name="c" ... /> </choice> I would, however, not recommend using it since it complicates processing of your documents. hth, -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding |
|
|
|
#3 |
|
Posts: n/a
|
Thanks!!
|
|
|
|
#4 |
|
Posts: n/a
|
Do you think it will influence the processing performance??
Thanks a lot! Mavis Boris Kolpackov wrote: > "mavis" <> writes: > > > How to define a set of elements that could be in any order and can > > occur more than once?? > > You would use an unbounded choice of optional elements: > > <choice maxOccurs="unbounded"> > <element name="a" ... /> > <element name="b" ... /> > <element name="c" ... /> > </choice> > > > I would, however, not recommend using it since it complicates processing > of your documents. > > hth, > -boris > > > -- > Boris Kolpackov > Code Synthesis Tools CC > http://www.codesynthesis.com > Open-Source, Cross-Platform C++ XML Data Binding |
|