Xs:all permits items in any order. Just use it instead of xs:sequence.
Permits items in any order. Just use it instead of .
All elements are not mandatory. – Daud Ahmad Jan 21 '10 at 10:43 Well, your original question was only about order. – GSerg Jan 21 '10 at 11:30.
Is still your correct answer here I believe. Each element inside an compositor can have a minOccurs attribute of zero. The result is a set of elements which may occur in any order and any element may occur exactly zero or one times.
For example, the below requires that row contains one name element, zero or one city elements and zero or one country elements in any order. I may have misunderstood your requirement though.
Yup this should work for me. Thanks. – Daud Ahmad Jan 21 '10 at 11:27 But what if I they can occur more than one times?
– Daud Ahmad Jan 21 '10 at 13:42 So... you have three elements, all of which can occur zero or more times. Is that right? – Nic Gibson Jan 21 '10 at 14:19 Yes, 3 or more elements which can occur zero or more times and in no specific order.
– Daud Ahmad Jan 21 '10 at 14:31.
Found the answer to this question. Instead of using use with minOccurs="0" and maxOccurs="unbounded". Now the elements are not only optional they can also appear in any order.
FWIW I don't think that's the same at all. This schema allows what it looks like - any number of child elements, each of which could be either of the three. Is it valid to have a contain five children and nothing else?
This schema allows that. Newt's answer is closer to what it sounds like you want. – Andrzej Doyle Mar 3 '10 at 9:53.
I've been studying up how to write an XML Schema and I'm stumped on XSD ordering indicators like xs:sequence, xs:all, xs:choice. There seem to be only 3 of them and they're required in complex types. In which the 3 elements inside can appear in any order i.e.
Does this mean I'll have specify a new for each sequence of elements. What if I have something like 20 elements with no specific order. Is there some shortcut here?
Am I missing something?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.