DTD Attribute Types - ENTITY

The attribute type of ENTITY is used for referring to the name of an entity you've declared in your DTD.

Syntax:

Example:

Valid XML - The following XML document would be valid, as it conforms to the above DTD:

Invalid XML - The following XML document would be invalid. This is because the photo attribute of the second element contains a value that hasn't been declared as an entity: