DTD Node
See Also
A DTD node (
)
represents a document type definition (DTD) file. A DTD describes the tags that
can be used in an XML file and indicates the valid arrangement of those tags.
It can exist as a prologue to an XML file (internal DTD) or as a separate file
(external DTD).
You can create a new DTD by choosing File
New
from the main window, expanding the XML folder, and selecting DTD Entity. You
can also generate a DTD for any XML file by right-clicking the XML file and
choosing Generate DTD.
Working With This Node
If you right-click this node and display the contextual menu, you can perform
a number of actions, including:
- Edit. Opens the DTD in the Source Editor. You can also edit a DTD
by double-clicking its Filesystems window node.
- Generate CSS. Automatically generates a cascading style sheet
based on the specifications contained in the DTD.
- Check DTD. Checks your DTD to ensure
that it is well-formed. The Output window lists any errors along with the
line number where the error was detected. This location is not necessarily
the line where the error occurred. You can double-click any error message
to go to the line in the XML file where the error was detected.
- Generate Documentation. Automatically generates an XHTML document
describing the elements, attributes, and entities declared in your DTD and
their specifications.
- Generate DOM Tree Scanner. Automatically
generates a DOM tree scanner class that you can use to read and alter XML
data.
- SAX Document Handler Wizard. Automatically
generates SAX code to read and handle XML data.
Legal Notices