Example 2-1: Using entities to include text and external resources

<?xml version="1.0"?>
<!DOCTYPE FAQ-List SYSTEM "FAQ-List.dtd"[
  <!ENTITY jdev "Oracle JDeveloper">
  <!ENTITY ver  "3.1">
  <!ENTITY lastyears SYSTEM "1999-Questions.xml">
  <!ENTITY webq_and_a SYSTEM "http://xml.us.oracle.com/webquestions.xml">
]>
<FAQ-List>
  <FAQ Submitter="smuench@oracle.com">
    <Question>Is it easy to get started with XML?</Question>
    <Answer>Yes!</Answer>
  </FAQ>
  <FAQ Submitter="smuench@oracle.com" Level="Beginner">
    <Question>What is the current version of &jdev;?</Question>
    <Answer>The current version is &jdev; &ver;</Answer>
  </FAQ>
  &webq_and_a;
  &lastyears;
</FAQ-List>