Document type definitions
The letter element contains one date element, one adressee element, one greeting element, at least one paragraph or at least one list element, and one closing element.
The date element contains plain o' text, no markup.
The addressee element contains one and only one name, address one, and address two element, in that order.
The name, address_one, address_two, and greeting elements contain text, no markup.
The paragraph element can contain plain text or the italics element.
The italics element contains plain, non-marked up, text.
The list element contains at least one item element.
The item and closing elements contain plain text.
To include this DTD in our XML file, we must create pointer to the DTD, and since the DTD is local to our environment, and not a standard, the pointer should be included in the XML document looking like this:
<!DOCTYPE letter SYSTEM "letter.dtd"> <letter> <date> December 11, 2002 </date> <addressee> <name> Melvile Dewey </name> <address_one> Columbia University </address_one> <address_two> New York, NY </address_two> </addressee> <greeting> Dear Melvile, </greeting> <paragraph> I have been reading your ideas concerning nature of librarianship, and <italics>I find them very intriguing</italics>. I would love the opportunity to discuss with you the role of the card catalog in today's libraries considering the advent to World Wide Web. Specifically, how are things like Google and Amazon.com changing our patrons' expectations of library services? Mr. Cutter and I will be discussing these ideas at the next Annual Meeting, and we are available at the follow dates/times: </paragraph> <list> <item> Monday, 2-4 </item> <item> Tuesday, 3-5 </item> <item>