syeshin | befd53e | 2005-07-27 18:16:40 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE html |
| 3 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 | <html> |
| 5 | <head> |
| 6 | <link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" /> |
| 7 | <title>Editing your DOCTYPE declaration</title> |
| 8 | <script language="JavaScript"> |
| 9 | function popup_window( url, id, width, height ) |
| 10 | { |
| 11 | popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' ); |
| 12 | popup.focus(); |
| 13 | } |
| 14 | </script><script language="JavaScript" src="help/liveHelp.js"></script></head> |
| 15 | <body id="tedtdoc"> |
| 16 | |
| 17 | <h1 class="topictitle1">Editing your DOCTYPE declaration</h1> |
| 18 | <div><p>The DOCTYPE declaration in an XML file is used at the beginning |
| 19 | of it to associate it with a DTD file. You can edit your DOCTYPE declaration |
| 20 | to change the DTD file your XML file is associated with.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective, |
| 21 | but they will also work in many other perspectives.</p> |
| 22 | <p>To edit your DOCTYPE |
| 23 | declaration, follow these steps:</p> |
| 24 | </div> |
| 25 | <ol><li class="skipspace"><span>In the Design view of the XML editor, right-click <span class="uicontrol">DOCTYPE</span> and |
| 26 | click <span class="uicontrol">Edit DOCTYPE</span>.</span></li> |
| 27 | <li class="skipspace"><span>The value in the <span class="uicontrol">Root element mame</span> field |
| 28 | should match the root element of your XML file exactly.</span> You should |
| 29 | only edit the value in this field if your root element changes.</li> |
| 30 | <li class="skipspace"><span>You can select a Public ID for any existing XML Catalog entries |
| 31 | by clicking <span class="uicontrol">Browse</span>. </span> The value in the <span class="uicontrol">Public |
| 32 | ID</span> field is the Public Identifier. It is used to associate the |
| 33 | XML file (using an XML Catalog entry) with a DTD file. For more information |
| 34 | on XML Catalog entries, refer to the related tasks below.</li> |
| 35 | <li class="skipspace"><span>The value in the <span class="uicontrol">System ID</span> field is the |
| 36 | DTD the XML file is associated with. Type the path of the DTD file you want |
| 37 | the XML file associated with in this field. </span> <b>Note</b>: When |
| 38 | the XML file is processed by the XML processor, it will first try to use the |
| 39 | Public ID to locate the DTD, and if this fails, it will use the System ID |
| 40 | to find it.</li> |
| 41 | <li class="skipspace"><span>Click <span class="uicontrol">OK</span>.</span></li> |
| 42 | </ol> |
| 43 | </div> |
| 44 | |
| 45 | <div> |
| 46 | |
| 47 | <p><b class="relconceptshd">Related concepts</b><br /> |
| 48 | <a href="../topics/cxmlcat.html" title="There are two different ways to associate XML files with DTDs or XML schemas.">XML file associations with DTDs and XML schemas</a><br /> |
| 49 | </p> |
| 50 | <p><b class="reltaskshd">Related tasks</b><br /> |
| 51 | <a href="../topics/tedtcnst.html" title="In the Design view, when you edit an XML file that has a set of constraints (that is, a set of rules) defined by a DTD or an XML schema, you can turn the constraints on and off to provide flexibility in the way you edit, but still maintain the validity of the document periodically.">Editing with DTD or XML schema constraints</a><br /> |
| 52 | <a href="../topics/txmlcat.html" title="Adding an entry to the XML Catalog"></a><br /> |
| 53 | <a href="../topics/tedtgram.html" title="If you make changes to a DTD file or XML schema associated with an XML file (that is currently open), click XML > Reload Dependencies to update the XML file with these changes.">Updating XML files with changes made to DTDs and schemas</a><br /> |
| 54 | </p> |
| 55 | </div><p> |
| 56 | (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| 57 | </p> |
| 58 | </body> |
| 59 | </html> |