9.5. The attribute Element

Attribute types do not have the complexity of element types, simple types, or complex types. In particular, an attribute type has many possible attributes but very few content options.

9.5.1. Attributes of an attribute Element

The XML representation of an attribute type is an attribute element. Table 9.1 summarizes the attributes of an attribute element.

Table 9.1. Attribute Summary for an attribute Element
Attribute Description
default The value of a default attribute must be a value that conforms to the structure type of the attribute type. When the XML validator encounters an element whose element type specifies this attribute type and the element does not specify the corresponding attribute, the XML validator ...

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

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