實體

DTD 可以包含實體宣告。

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

本主題詳細介紹了實體。