blob: 1b92ea3d5d1ad8d733b5c579de76c47fe4673e92 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html lang="en-us" xml:lang="en-us">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "" l gen true r (n 0 s 0 v 0 l 0) "" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Validating DTDs" />
<meta name="abstract" content="Validating a DTD file lets you verify that it is well formed and does not contain any errors." />
<meta name="description" content="Validating a DTD file lets you verify that it is well formed and does not contain any errors." />
<meta content="DTD, validating" name="DC.subject" />
<meta content="DTD, validating" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.jst.j2ee.doc.user/topics/tjval.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tvaldtd" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<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="section"><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, right-click the DTD in the Navigator view and click <span class="menucascade"><span class="uicontrol">Validate
DTD File</span></span>. 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>
<div class="section"><div class="note"><span class="notetitle">Note:</span> 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 <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
</span> and select <span class="menucascade"><span class="uicontrol">General</span> &gt; <span class="uicontrol">Markers</span>
</span>. On this preferences page you can increase or decrease the
number of visible items in the problems view. </div>
<p>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 <span class="uicontrol">Properties</span>,
and select <span class="uicontrol">Validation</span>. Any validators you can run against
your project will be listed in the Validation page.</p>
<div><div class="relinfo"><strong>Related information</strong><br />
<div><a href="../../org.eclipse.jst.j2ee.doc.user/topics/tjval.html" title="General validation information">Validating code in enterprise applications</a></div>