Is it possible to break up XML files into smaller documents without having
to write a DTD for each document?  I.e. can I do something like this:

--Friends.DTD------

<!ELEMENT friends (person)+>

<!ELEMENT person (name, age, birthday)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT favortive-color(#PCDATA)>

-------------------


--myFriends.xml----
<!DOCTYPE friends SYSTEM "Friends.DTD">

<friends>
   <person LINK-TO-THIS-FILE "phil.xml">
   <person LINK-TO-THIS-FILE "will.xml">
   <person LINK-TO-THIS-FILE "gil.xml">
</friends>
-------------------


--phil.xml---------
<person>
  <name>Phil</name>
  <age>28</age>
  <favortive-color>blue</favortive-color>
</person>
-------------------

etc. with will.xml and gil.xml


What do ENTITY tags do for me in this regard?


Thanks

David

Reply via email to