M
Mavis
The usage of <xs:choice maxOccurs="unbounded">
When we want to define a set of elements that could be in any order and
with any occurences (0-unbounded), we can use <xs:choice
maxOccurs="unbounded">
But I alway think that is not a good schema definition for XML files,
and it must influence the writing and reading performance of these set
of elements if there are large amounts of sub-elements. We can imagine
that the retrieval of any single element will need to loop through all
the subelements.......
Any advices of this will be highly appreciated!!
When we want to define a set of elements that could be in any order and
with any occurences (0-unbounded), we can use <xs:choice
maxOccurs="unbounded">
But I alway think that is not a good schema definition for XML files,
and it must influence the writing and reading performance of these set
of elements if there are large amounts of sub-elements. We can imagine
that the retrieval of any single element will need to loop through all
the subelements.......
Any advices of this will be highly appreciated!!