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 (Page 1 of 6 )
If you are new to XML Schema, I strongly suggest you to go through my first article in the same series, which you can find right here.
The All indicator in XML Schema
Indicators? What are they?
Indicators are specially used to control the occurrences of elements in different orders. Sometimes, we may want certain elements to occur only once, or certain elements may not be in a particular order, or certain elements may not be necessary at all (optional) and so on. We can handle these kinds of issues by using indicators.
One of them is the “All” indicator. It is specially used to inform that the child elements of a parent element (of the complex type) can occur in any order and only once. Let us consider the following schema: