O'Reilly logo

Definitive XML Schema by Priscilla Walmsley

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

Chapter 13 Complex types

Complex types are used to define the content model and attributes of elements. This chapter introduces complex types. It covers the four content types (simple, element-only, mixed, and empty), and the use of element declarations, model groups, attribute declarations, and wildcards to define complex types.

13.1 What are complex types?

Elements that have complex types have child elements or attributes. They may also have character content. Example 13–1 shows the elements size, product, letter, and color that have complex types. They have the four different content types that are described in this chapter (simple, element-only, mixed, and empty, respectively).

Attributes can never have ...

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