DTD - element type definition / 1

Describes allowed content of the element, in form of <!ELEMENT element-name ... >, where ... can be

  • EMPTY - for empty element which may be represented as <element/> or <element></element> - the same logical meaning

  • ANY - any element content allowed, i.e. text nodes, child elements, ...

  • may contain child elements - <!ELEMENT element-name (specification of child elements)>

  • may be mixed - containing both text and child elements given by enumeration <!ELEMENT element-name (#PCDATA | specification of child elements)*>.

  • for MIXED: the order or cardinality of concrete child elements cannot be specified.

  • The star (*) is required - any cardinality is always allowed.