Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

XML Schema Sequence Question

Question posted by: ChipR (Newbie) on July 17th, 2008 07:23 PM
Is there any way to specify a sequence with one or more elements that can be repeated like

<complexType name="element_type">
<sequence>
<element name="A" type="string"/>
<element name="B" type="string" maxOccurs="10"/>
<element name="C" type="string"/>
</sequence>
</complexType>

but allow the elements to be in any order like all?

<all> only allows 0-1 of each element, but I don't want to require that the elements are in order as long as they are there, like AB+C, ACB+, B+AC, B+CA, CAB+, or CB+A

I just realized I could do a choice between all those sequences, which would be quite long in my complex schema, but is there a better way?

Thanks in advance,
Chip
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Reply
Not the answer you were looking for? Post your question . . .
183,813 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top XML Forum Contributors