xs:complexType

Defines a top level complex type.

Complex Type Definitions provide for:

See more info at http://www.w3.org/TR/xmlschema-1/#element-complexType.

[Tip]Tip

A complex type which is a base type to another type will be rendered with yellow background.

Table 4.4. xs:complexType properties
Property NameDescriptionPossible ValuesMentions
NameThe name of the complex type. Always required.Any NCNameOnly for global complex types. If missing, will be displayed as '[complexType]' in diagram.
Base Type DefinitionThe name of the extended/restricted types.Any from the declared simple or complex types.For complex types with simple or complex content.
Derivation MethodThe derivation method.restriction/ extensionOnly when base type is set. If the base type is a simple type, the derivation method is always extension.
ContentThe content of the complex type.simple/ complexFor complex types which extend/restrict a base type. It is automatically detected.
Content MixedSpecifies if the complex content model will be mixed.true/falseFor complex contents.
MixedSpecifies if the complex type content model will be mixed.true/falseFor global and anonymous complex types.
AbstractWhen set to 'true', this complex type cannot be used directly in the instance documents and needs to be substituted using an 'xsi:type' attribute.true/falseFor global and anonymous complex types.
BlockControls whether a substitution (either through a 'xsi:type' or substitution groups) can be performed for a complex type, which is an extension or a restriction of the current complex type. This attribute can only block such substitutions (it cannot "unblock" them), which can also be blocked in the element definition. The default value is defined by the 'blockDefault' attribute of xs:schema.all, extension, restriction, extension restriction, [Empty]For global complex types.
FinalControls whether the complex type can be further derived by extension or restriction to create new complex types.all, extension, restriction, extension restriction, [Empty]For global complex types.
IDThe component id.Any idFor all complex types.
ComponentThe edited component name.Not editable property.For all complex types.
NamespaceThe component namespace.Not editable property.For all complex types.
System IDThe component system id.Not editable property.For all complex types.