Anatomy of a DTD

Now that you have seen a DTD, let's look at each of the DTD declarations in more detail. Generally, DTDs consist of three basic parts:

□ Element declarations

□ Attribute declarations

□ Entity declarations

The current name example needs to be expanded to explore the more complex aspects of DTDs. In this section, you will create an XML vocabulary for listing contacts — all of your friends and family. Note, however, that there are many existing vocabularies for contacts on the Internet. Using a simplified format will enable you to quickly create your own vocabulary.

0 0

Post a comment

  • Receive news updates via email from this site