Entities
The DTD of an XML document can contain entity declarations. These are like constants in other languages.
- An entity declaration specifies replacement text for the entity including some macro-preprocessing capability.<!ENTITY % pub “Éditions Gallimard”><!ENTITY rights “All rights reserved”><!ENTITY book “La Pest: Albert Camus, sA9; 1947 %pub; . &rights;”>
- This entity would have replacement text for book:La Peste: Albert Camus, c 1947 Editions Gallimard. &rights;where c would be copyright symbol, and E has accent mark.