Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book