This is the fourth (and last) in this series of articles, which guides you in designing XML Schemas right from the basics without any hurdles. This part explains what indicators are and how to use them.
Designing Your Own XML Schema: Indicators - The Choice indicator in XML Schema (Page 2 of 6 )
Another indicator from the XML Schema vocabulary is the “Choice” indicator. It is specially used to inform that one of the child elements could occur. We can define as many numbers of elements as possible (with the “choice” indicator), but finally only one has to be chosen. Let us consider the following schema: