Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

Editing DOCTYPE declarations

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.

The following instructions were written for the Resource perspective, but they will also work in many other perspectives.

To edit your DOCTYPE declaration, complete the following steps:

  1. In the Design view of the XML editor, right-click DOCTYPE and click Edit DOCTYPE.
  2. The value in the Root element name field should match the root element of your XML file exactly. You should only edit the value in this field if your root element changes.
  3. You can select a Public ID for any existing XML Catalog entries by clicking Browse. The value in the Public ID 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 Adding entries to the XML Catalog.
  4. The value in the System ID 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.
    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.
  5. Click OK.
If you do not have a DOCTYPE declaration in your XML file, you can right-click in the Design view and click Add DTD Information to add one.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire