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

DTD

Here's where things get a little dicey. Document Type Definition files, or DTDs, loosely define the language of an XML document. From a browser perspective, DTDs give us something to check the document against for validity. A well-formed XML document not matching the constraints of a DTD associated with it is considered invalid. (At this time, neither Internet Explorer nor Netscape browsers validate using the DTD.)

I, as a Web page developer, look at DTDs in a different way. I use them as a way to define the basic structure of an XML language, from which I can construct numerous XML documents as I see fit. In a sense, they become notes for me. Of course, if an XML document I generate does not validate against its corresponding DTD, then I did something wrong—either in generating the XML document, or in the DTD file.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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