Description of Element Properties in DTDs

An element has three properties: Type, Name, and Content Model. The Name property is a string that identifies the element. The Content Model property describes the allowed contents for the element. Table 61 describes the possible values of the Content Model property for Element nodes:

Value of Content Model Property
Description
Empty
This element can contain only attributes.
Element Only
This element can contain attributes and specified elements. It cannot directly contain raw data.
Mixed
This element can contain attributes, specified elements, and raw data.
Any
This element can contain attributes, any elements defined in this DTD, and raw data.
Table 61. Element Property Descriptions

 
Free Stylus Studio XML Training:
W3C Member