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.
Elements that have complex types have child elements or attributes. They may also have character content. Example 13–1 shows the elements
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 ...