A Document Type Definition (DTD) describes the grammar that can be used in an XML file and indicates the valid arrangement of the file's tags. It can exist as a prologue to an XML file (internal DTD), or as a separate file that the XML file references (external DTD).
You can create a new DTD file from scratch, or you can automatically generate a DTD file from an existing XML document.
To generate a DTD file from an existing XML file:
The new DTD node appears in the Explorer and is opened as a text file in the Source Editor.
To create an empty DTD file:
In the Explorer, the DTD file's node appears under the package you chose. The DTD file also opens in the Source Editor.
See also | |
---|---|
The XML Module Creating an XML Document Editing an XML Document Text Editor Tree Editor |