This sections contains information on the following:
Creating DTDs A document type definition (DTD) contains a set of rules that can be used to validate an XML file. After you have created a DTD, you can edit it, adding declarations that define elements, attributes, entities, and notations, and how they can be used for any XML files that reference the DTD file.
Importing DTDs If you want to work with DTD files that you created outside of the product, you can import them into the workbench and open them in the DTD editor. The DTD editor provides you with a structured view of the DTD.
Editing DTDs You can edit DTD files in both the Outline view and the Source view. Modifying the content of a DTD determines what can be used in any XML file that is associated with it.
Validating DTDs Validating a DTD file lets you verify that it is well formed and does not contain any errors.
Generating XML schemas from DTD files Generating an XML schema from a DTD file enables you to create an XML schema that is automatically populated with elements and attributes from your DTD file. This can save you time if you want to use an XML schema rather than a DTD file to validate your XML file, but you want to use the rules already set up in your DTD file.