beautypg.com

View comments and processing instructions, Edit comments and processing instructions, Use dtd files to validate xml – Adobe InCopy CC 2015 User Manual

Page 381: Load a dtd file, View a dtd file

background image

379

XML

Last updated 6/13/2015

View comments and processing instructions

Choose Show Comments or Show Processing Instructions in the Structure pane menu.

Edit comments and processing instructions

1

Select the comment or processing instruction.

2

Do any of the following:

• Double-click the comment or processing instruction.

• Choose Edit on the Structure pane menu.

3

Edit the comment or processing instruction and click OK.

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 in InDesign.

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.

A DOCTYPE element from the DTD file (Structure pane) B Locked tag from the DTD file (Tags panel)

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 pane menu.

• In the Tags panel, choose Load DTD from the panel 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 > Utilities > Tags.

View a DTD file

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.