<xdr:element> Element
The XML-Data Reduced (XDR) schema element that 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 | *}"]
>
Attributes
- type
The name of an ElementType element defined in this schema (or another schema indicated by the specified namespace). The supplied value must correspond to the name attribute on the ElementType element. The type can include a namespace prefix.
minOccurs
Optional. The minimum number of times the reference element type can occur on the element. The following values can be assigned to this attribute.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.
maxOccurs
Optional. The maximum number of times the element can occur on the element. The following values can be assigned to this attribute.1
Can occur a maximum of one time.
*
An unlimited number of occurrences is allowed.
Element Information
Number of occurrences |
The number of element types defined in the schema. |
Parent elements |
|
Child elements |
(No child elements.) |
Remarks
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.