The Prolog and The Body
May 3, 1999
As we mentioned earlier, all documents are made up of a
prolog and a body. The document prolog contains the XML
Declaration and the document body contains the actual marked
up document. Recall from previous sections that we had
developed a CONTACTS XML document that looked something like
the following:
<!--Beginning of prolog-->
<?xml version = "1.0" encoding="UTF-8" standalone = "yes"?>
<!--End of prolog-->
<!--Beginning of body-->
<CONTACTS>
<CONTACT>
<NAME>Gunther Birznieks</NAME>
<EMAIL>gunther@bobsfishstore.com</EMAIL>
<PHONE>662-9999</PHONE>
</CONTACT>
<CONTACT>
<NAME>Susan Czigany</NAME>
<EMAIL>susan@eudora.org</EMAIL>
<PHONE>555-1234</PHONE>
</CONTACT>
</CONTACTS>
<!--End of body-->
What we did not say earlier was that the prolog also holds
the DTD.
Introducing the Valid XML Document and the DTD
Introduction to XML For Web Developers | Table of Contents
The Basic DTD
|