What is the difference between XSD choice and enumeration?
3 Answers
5
votes
They are completely unrelated.
Choice indicates that within the content model of an element, you can use one of several child elements: for example within a document you have a choice of chapter or appendix as child elements.
Enumeration is used to restrict the values that can appear in a text or attribute node, for example to say that the value of a color attribute must be red, green, or blue.
3
votes