Refers to a declared element type that can appear within the scope of the named ElementType element.
<element type="element-type" [minOccurs="{0 | 1}"] [maxOccurs="{1 | *}"] >
0 | When the minimum value is zero, the specified element is not required; the element is optional. |
1 | The specified element must occur at least once. |
1 | Can occur at most once. |
* | Unlimited number of occurrences. |
Number of occurrences | Number of element types defined in the schema. |
Parent elements | ElementType, group |
Child elements | (No child elements) |
Requires closing tag | Yes. XML Schema is an XML grammar, and like all XML grammars, all tags must have closing tags to satisfy the definition of well-formed. |
ElementType declarations can constrain the content and attributes that appear in elements of the named type by referring to other element type or attribute type declarations.
The minOccurs and maxOccurs attributes have the default value "1." An element with neither attribute specified uses these default values and therefore must appear once and only once in a content model.