xml Entities


Example

A DTD can contain entity declarations.

<?xml version="1.0"?>
<!DOCTYPE document [
  <!ENTITY my-entity "This is the replacement text">
]>
<document>
  <!-- the rest of the document -->
</document>

Entities are described in details in this topic.