The root element of the generated DTD represents the content of different tables or the results of several queries or both. The user can choose the name of this element, the default name is database . All records belong to one query or one table are grouped in a single element. The user can choose the name of this element, the default name is the name of the corresponing table or in case the records are from differnt tables XXXs , where XXX is the name of the corresponding record element.
Every record is represented as an element.
The user can choose the name of this element, the default name is record . If applicable, users may choose to use a table name. Its content is a sequence of elements corresponding to the individual fields. If null values are discarded, those fields which are nullable are optional. The value of the attribute KEY is the key for that element.