- 65 -
Alex, Faraz
Similarly, for external subsets, the syntax found in the XML document is:
...
To exemplify this, we need to have two documents: the external DTD and the XML
document. The XML document looks like this:
Alex, Faraz
while the DTD, good_guys.dtd looks like this:
A document can have
both
internal and external document type declarations so that you
can further define your structure. In keeping with the same theme as above, our
good_guys.dtd should look like this:
If we further wanted to define the structure of our good_guy element, our good_guys.xml
XML file could look like this:
]>
Alex, Faraz
Hold on to your hats; it gets worse before it gets better. But rest assured—it does get
better!