O'Reilly logo

Special Edition Using XML, Second Edition by - et al. David Gulbransen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deriving Complex Types

Simple datatypes do offer a lot of power within an XML Schema, in terms of managing your data. However, they do lack the flexibility to define new complex representations of data within the content model of an element.

For defining complex types, XML Schemas provide the <complexType> mechanism, which allows you to define your own complex types for element content models.

Complex types can also be defined independently of element declarations, so that they can be applied to multiple elements, or so that you may derive new complex types, based on previous types that you have defined in a schema. There are two mechanisms that you can use for deriving new complex types: restriction and extension.

Complex Types by Restriction ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required