blob: 9249ccf5001f33f586bc343a5f0a26aa4a012bb7 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--Arbortext, Inc., 1988-2006, v.4002-->
<task id="tedtdoc" xml:lang="en-us">
<title>Editing DOCTYPE declarations</title>
<searchtitle>Editing DOCTYPE declarations</searchtitle>
<shortdesc>The DOCTYPE declaration in an XML file is used at the beginning
of it to associate it with a DTD file. You can edit your DOCTYPE declaration
to change the DTD file your XML file is associated with.</shortdesc>
<keywords><indexterm>DOCTYPE declarations<indexterm>XML editor</indexterm></indexterm>
<indexterm>XML editor<indexterm>DOCTYPE declarations</indexterm></indexterm>
<context><p>The following instructions were written for the Resource perspective,
but they will also work in many other perspectives.</p><p>To edit your DOCTYPE
declaration, complete the following steps:</p></context>
<step><cmd>In the Design view of the XML editor, right-click <uicontrol>DOCTYPE</uicontrol> and
click <uicontrol>Edit DOCTYPE</uicontrol>.</cmd></step>
<step><cmd>The <?Pub Caret?>value in the <uicontrol>Root element name</uicontrol> field
should match the root element of your XML file exactly.</cmd><info>You should
only edit the value in this field if your root element changes.</info></step>
<step><cmd>You can select a Public ID for any existing XML Catalog entries
by clicking <uicontrol>Browse</uicontrol>. </cmd><info>The value in the <uicontrol>Public
ID</uicontrol> field is the Public Identifier. It is used to associate the
XML file (using an XML Catalog entry) with a DTD file. For more information,
see <xref format="html" href="txmlcat.dita" scope="peer">Adding entries to
the XML Catalog</xref>.</info></step>
<step><cmd>The value in the <uicontrol>System ID</uicontrol> field is the
DTD the XML file is associated with. Type the path of the DTD file (or browse
for it) you want the XML file associated with in this field. </cmd><info> <note>When
the XML file is processed by the XML processor, it will first try to use the
Public ID to locate the DTD, and if this fails, it will use the System ID
to find it.</note></info></step>
<step><cmd>Click <uicontrol>OK</uicontrol>.</cmd></step>
<postreq>If you do not have a DOCTYPE declaration in your XML file, you can
right-click in the Design view and click <uicontrol>Add DTD Information</uicontrol> to
add one.</postreq>
<?Pub *0000002518?>