Purpose | This element enables you to define simple content within complex type definitions as defined in the W3C XML Schema. In particular, it enables you to define new complex types by extension, i.e. by adding attributes. |
Parent element | xs:complexType |
Child elements | xs:extension |
Attributes | None |
This example of a definition of a complex type based on simple content is taken from a track list of the "Jazz" schema:
<xs:simpleContent> <xs:extension base = "xs:normalizedString"> <xs:attribute name = "duration" type = "xs:unsignedShort" use = "required"/> </xs:extension> </xs:simpleContent>