Document Type Definitions (DTDs)
Document Type Definitions (DTDs) are one of two main types of documents you can use to specify XML document structure. Section 19.6 presents W3C XML Schema documents, which provide an improved method of specifying XML document structure.
|
Creating a Document Type Definition
Figure 19.4 presented a simple business letter marked up with XML. Recall that line 5 of letter.xml references a DTDletter.dtd (Fig. 19.9). This DTS specifies the business letter's element types and attributes, and their relationships to one another.
Figure 19.9. Document Type Definition (DTD) for a business letter.
(This item is displayed on page 945 in the print version)
1 2 3 4 Категории |