Use dtd files to validate xml – Adobe InDesign CS3 User Manual
Page 543

INDESIGN CS3
User Guide
536
Use DTD files to validate XML
Validating the XML in a document means to compare the structure, element tag names, and attributes against the
specifications of a DTD file. To validate against a DTD file, you must first load it into your document.
Note: Loading a DTD file imports tag names into the Tags panel. These imported tag names are locked; they can’t be
deleted or renamed except by deleting the DTD file from the document.
The DOCTYPE element appears at the top of the Structure pane if a DTD file has been loaded into your document.
(DTDs are sometimes loaded automatically when you import an XML file.) To replace the DTD file in a document,
delete the existing DTD and then load a new one.
Working with DTD files in InDesign
A. DOCTYPE element from the DTD file (Structure pane) B. Locked tag from an the DTD file (Tags panel)
See also
Load a DTD file
When you load a DTD file, InDesign embeds the file in the document.
1
Do one of the following:
•
In the Structure pane, choose Load DTD from the Structure menu.
•
In the Tags panel, choose Load DTD from the menu.
2
Select a DTD file to import, and click Open.
To view tags defined in the DTD file, open the Tags panel by choosing Window > Tags.
View a DTD file in InDesign
DTDs are written in ASCII text. They may contain embedded instructions and explanations that describe how to
apply tags and order elements correctly. In InDesign, you can only view a DTD that is loaded in a document.
A
B