# Validating DTDs

Validating a DTD file lets you verify that it is well formed and does not contain any errors.

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

To validate a DTD, right-click the DTD in the Navigator view and click Validate DTD File. A dialog opens, indicating if the DTD file was successfully validated or not. If the file is invalid, any errors will appear in the Problems view.

Note: If you receive an error message indicating that the Problems view is full, you can increase the number of error messages allowed in the view. Click Window > Preferences and select General > Markers . On this preferences page you can increase or decrease the number of visible items in the problems view.

You can set up a project's properties so that different types of project resources are automatically validated when you save them. Right click on the project, click Properties, and select Validation. Any validators you can run against your project will be listed in the Validation page.

Related information
Validating code in enterprise applications