O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

External DTDs

The DTDs I've created in this chapter so far have all been built into the documents they are targeted for. However, you can also create external DTDs, in which the actual DTD is stored in an external file (usually with the extension .dtd).

Using external DTDs makes it easy to create an XML application that can be shared by many people. In fact, that's the way many XML applications are supported. There are two ways to specify external DTDs: as private DTDs or as public DTDs. I'll take a look at private DTDs first.

Private DTDs are intended for use by people or groups privately and are not intended for public distribution. You specify an external private DTD with the SYSTEM keyword in the <!DOCTYPE> element, like this (note also that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required