DTDs generally apply a document that defines the type of data exchange in an application, typically in an XML configuration file, sometimes in eclipse, where some hints are not loaded, and are manually imported, as follows:
1, first download according to the website of the Declaration. DTD files, put in a directory of the project, it is recommended to import the project, so that the migration will be ported together in the past.
2. Click Window-preferences in the menu
3, open the dialog box to the left to select Xml-xml Catalog, right click Add ... Button
4, then select the DTD location, recommended to join workspace ... , the reason just said, choose OK after; then the key input box is filled with the next line of the public declaration in the DTD file, note without the quotation marks:
Copy the content into the text box:
Finally click OK, click Finish to complete the import,
After importing back to the XML configuration file editing interface, you will find hints appear, such as:
How to manually import DTD files in eclipse