• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Why Have a DTD at All?

Recall from Chapter 11, "Introduction to XML," that an XML Document Type Definition (DTD) is simply a set of rules that explains how to use XML markup. As long as an XML document is well formed, no need exists to have a DTD at all. In fact, as will be shown later in this chapter, it is possible to derive a DTD just by looking at the XML document. However, some important restrictions apply to an XML document that does not have a DTD.

If you want to be able to validate an XML document without a DTD:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint