blob: 5a49f1dcc3552f87ca0684f80c70f934874bb092 [file] [log] [blame]
kprice9c922d82006-08-30 22:07:19 +00001<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html lang="en-us" xml:lang="en-us">
syeshin17ed4a62005-07-25 17:10:24 +00003<head>
kprice9c922d82006-08-30 22:07:19 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
5<meta name="copyright" content="Copyright (c) 2000, 2006 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 http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
7<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Validating DTDs" />
12<meta name="abstract" content="Validating a DTD file lets you verify that it is well formed and does not contain any errors." />
13<meta name="description" content="Validating a DTD file lets you verify that it is well formed and does not contain any errors." />
14<meta content="DTDs (document type definitions), validating" name="DC.subject" />
15<meta content="DTDs (document type definitions), validating" name="keywords" />
16<meta scheme="URI" name="DC.Relation" content="../topics/cworkdtds.html" />
17<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.jst.j2ee.doc.user/topics/tjval.html" />
18<meta content="XHTML" name="DC.Format" />
19<meta content="tvaldtd" name="DC.Identifier" />
20<meta content="en-us" name="DC.Language" />
21<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
syeshin17ed4a62005-07-25 17:10:24 +000022<title>Validating DTDs</title>
syeshin15e1cc42005-08-26 04:13:17 +000023</head>
syeshin17ed4a62005-07-25 17:10:24 +000024<body id="tvaldtd"><a name="tvaldtd"><!-- --></a>
25
kprice9c922d82006-08-30 22:07:19 +000026
syeshin17ed4a62005-07-25 17:10:24 +000027<h1 class="topictitle1">Validating DTDs</h1>
kprice9c922d82006-08-30 22:07:19 +000028
29
30
31
syeshin17ed4a62005-07-25 17:10:24 +000032<div><p>Validating a DTD file lets you verify that it is well formed and
kprice9c922d82006-08-30 22:07:19 +000033does not contain any errors.</p>
34
35<div class="section"><p>The following instructions were written for the Resource perspective,
36but they will also work in many other perspectives. </p>
syeshin17ed4a62005-07-25 17:10:24 +000037<p>To validate
38a DTD, follow these steps:</p>
39</div>
kprice9c922d82006-08-30 22:07:19 +000040
41
42<div class="p"><span>In the Navigator view, right-click the DTD and click <span class="menucascade">
43<span class="uicontrol">Validate DTD File</span></span>.</span></div>
44
45
46<div class="section">A dialog opens, indicating if the DTD file was successfully validated
47or not. If the file is invalid, any errors will appear in the Problems view.  <p><strong>Note</strong>:
48If you receive an error message indicating that the Problems view is full,
49you can increase the number of error messages allowed by selecting <span class="menucascade">
50<span class="uicontrol">Properties</span> &gt; <span class="uicontrol">Validation</span></span> from
51the project's pop-up menu and specifying the maximum number of error messages
52allowed. You might have to select the <span class="uicontrol">Override validation preferences</span> check
53box in order to enable the <span class="uicontrol">Maximum number of validation messages</span> field</p>
54<p>You
55can set up project's properties so that different types of project resources
56are automatically validated when you save them. From a project's pop-up menu
57select <span class="uicontrol">Properties</span>, then select <span class="uicontrol">Validation</span>.
58Any validators you can run against your project will be listed in the
59Validation page. </p>
syeshin17ed4a62005-07-25 17:10:24 +000060</div>
kprice9c922d82006-08-30 22:07:19 +000061
syeshin17ed4a62005-07-25 17:10:24 +000062</div>
syeshin6e211042005-10-27 17:42:51 +000063
64<div>
kprice9c922d82006-08-30 22:07:19 +000065<div class="familylinks">
66<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/cworkdtds.html" title="This sections contains information on the following:">Working with DTDs</a></div>
syeshin6e211042005-10-27 17:42:51 +000067</div>
kprice9c922d82006-08-30 22:07:19 +000068<div class="relinfo"><strong>Related information</strong><br />
lmandel79573072006-03-30 03:29:16 +000069<div><a href="../../org.eclipse.jst.j2ee.doc.user/topics/tjval.html" title="General validation information">../../org.eclipse.jst.j2ee.doc.user/topics/tjval.html</a></div>
70</div>
71</div>
72
syeshin17ed4a62005-07-25 17:10:24 +000073</body>
74</html>