In a DTD, how could I specify a set of values that an element (not an attribute) could contain.

Serge Knystautas

DTDs do not allow you to specify possible values of data, either for attributes or elements. It basically only allows you to specify how elements nest and their attributes.

XML Schema will allow you to do this.