15.4. Element Types

Elements are the primary components of XML documents. Each element has a type name, a set of attributes, and content. The type name serves to identify its element type: a class, of which the element claims to be an instance.

The structure of elements and their types is more complicated than the structure of attributes and their types. Instead of just a value model, an element type has both an attribute set model and a content model and substitution information. Like an attribute type, an element type has a name, a scope, and possibly an annotation. Most of the attribute set and content models—the structure type—is separated out into a separate component because it has a complicated structure of its own and is potentially ...

Get XML Schema Complete Reference, The now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.