xerces-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins" <dblev...@visi.com>
Subject Breaking up XML files into smaller documents
Date Mon, 30 Oct 2000 23:02:58 GMT
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


Mime
View raw message