xs:element

Defines an element. An element declaration is an association of a name with a type definition, either simple or complex, an (optional) default value and a (possibly empty) set of identity-constraint definitions. See more info at http://www.w3.org/TR/xmlschema-1/#element-element.

An element by default displays the following properties when rendered in the diagram: default, fixed, abstract and type. When referenced or declared locally, the element graphical representation also contains the value for the minOccurs and maxOccurs properties (for 0..1 and 1..1 occurs the values are implied by the connector style) and the connectors to the element are drawn using dotted lines if the element is optional.

Table 4.2. xs:element properties
Property NameDescriptionPossible ValuesMentions
NameThe element name. Always required.Any NCName for global or local elements, any QName for element references.If missing, will be displayed as '[element]' in diagram.
Is ReferenceWhen set, the local element is a reference to a global element.true/falseAppears only for local elements.
TypeThe element type.All declared or built-in types. In addition, the following anonymous types are available: [ST-restriction], [ST-union], [ST-list], [CT-anonymous], [CT-extension SC], [CT-restriction SC], [CT-restriction CC], [CT-extension CC].For all elements. For references, the value is set in the referred element.
Base TypeThe extended/restricted base type.All declared or built-in typesFor elements with complex type, with simple or complex content.
MixedDefines if the complex type content model will be mixed.true/falseFor elements with complex type.
ContentThe content of the complex type.simple/complexFor elements with complex type which extends/restricts a base type. It is automatically detected.
Content MixedDefines if the complex content model will be mixed.true/falseFor elements with complex type which has a complex content.
DefaultDefault value of the element. A default value is automatically assigned to the element when no other value is specified.Any stringThe fixed and default attributes are mutually exclusive.
FixedA simple content element may be fixed to a specific value using this attribute. A fixed value is also automatically assigned to the element and you cannot specify another value.Any string The fixed and default attributes are mutually exclusive.
Min OccursMinimum number of occurrences of the element.A numeric positive value. Default value is 1Only for references/local elements
Max OccursMaximum number of occurrences of the element.A numeric positive value. Default value is 1Only for references/local elements
Substitution GroupQualified name of the head of the substitution group to which this element belongs.All declared elementsFor global and reference elements
AbstractControls whether the element may be used directly in instance XML documents. When set to true, the element may still be used to define content models, but it must be substituted through a substitution group in the instance document.true/falseFor global elements and element references
FormDefines if the element is "qualified" (i.e., belongs to the target namespace) or "unqualified" (i.e., doesn't belong to any namespace).unqualified/qualifiedOnly for local elements
NillableWhen this attribute is set to true, the element can be declared as nil using an xsi:nil attribute in the instance documents.true/falseFor global elements and element references
BlockControls whether the element can be subject to a type or substitution group substitution. '#all' blocks any substitution, 'substitution' blocks any substitution through substitution groups and 'extension'/'restriction' block any substitution (both through xsi:type and substitution groups) by elements or types, derived respectively by extension or restriction from the type of the element. Its default value is defined by the 'blockDefault' attribute of the parent xs:schema.#all, restriction, extension,substitution, extension restriction, extension substitution, restriction substitution, restriction extension substitutionFor global elements and element references
FinalControls whether the element can be used as the head of a substitution group for elements whose types are derived by extension or restriction from the type of the element. Its default value is defined by the 'finalDefault' attribute of the parent xs:schema.#all, restriction, extension, restriction extension, [Empty]For global elements and element references
IDThe component id.Any idFor all elements.
ComponentThe edited component name.Not editable property.For all elements.
NamespaceThe component namespace.Not editable property.For all elements.
System IDThe component system id.Not editable property.For all elements.