blob: 973982a6ed385d6bd78e5d7cbd0737c36238a302 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Validating DTDs</title>
<body id="tvaldtd"><a name="tvaldtd"><!-- --></a>
<h1 class="topictitle1">Validating DTDs</h1>
<div><p>Validating a DTD file lets you verify that it is well formed and
does not contain any errors.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective,
but they will also work in many other perspectives. </p>
<p>To validate
a DTD, follow these steps:</p>
<div class="p"><span>In the Navigator view, right-click the DTD and click <span class="menucascade"><span class="uicontrol"><b>Validate DTD File</b></span></span>.</span></div>
<div class="skipspace">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.
 <p><b>Note</b>: If you receive an error message indicating
that the Problems view is full, you can increase the number of error messages
allowed by selecting <span class="menucascade"><span class="uicontrol"><b>Properties</span> &gt; <span class="uicontrol">Validation</b></span></span> from the project's pop-up menu and specifying the maximum number
of error messages allowed. You might have to select the <span class="uicontrol"><b>Override
validation preferences</span></b> check box in order to enable the <span class="uicontrol"><b>Maximum
number of validation messages</b></span> field.</p>
<p>You can set up project's
properties so that different types of project resources are automatically
validated when you save them. From a project's pop-up menu select <b><span class="uicontrol">Properties</span></b>,
then select <span class="uicontrol"><b>Validation</b></span>. Any validators you can run
against your project will be listed in the Validation page. </p>
<b class="parentlink">Parent topic:</b> <a href="../topics/cworkdtds.html" title="Working with DTDs">Working with DTDs</a><br />