blob: 973982a6ed385d6bd78e5d7cbd0737c36238a302 [file] [log] [blame]
syeshin17ed4a62005-07-25 17:10:24 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html>
5<head>
syeshinaaa21932005-09-22 17:13:22 +00006<!-- /*******************************************************************************
7 * Copyright (c) 2000, 2005 IBM Corporation and others.
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * http://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors:
14 * IBM Corporation - initial API and implementation
15 *******************************************************************************/ -->
16<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
syeshin17ed4a62005-07-25 17:10:24 +000017<title>Validating DTDs</title>
syeshin15e1cc42005-08-26 04:13:17 +000018</head>
syeshin17ed4a62005-07-25 17:10:24 +000019<body id="tvaldtd"><a name="tvaldtd"><!-- --></a>
20
21<h1 class="topictitle1">Validating DTDs</h1>
22<div><p>Validating a DTD file lets you verify that it is well formed and
23does not contain any errors.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective,
24but they will also work in many other perspectives. </p>
25<p>To validate
26a DTD, follow these steps:</p>
27</div>
syeshin6e211042005-10-27 17:42:51 +000028<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>
syeshin17ed4a62005-07-25 17:10:24 +000029<div class="skipspace">A dialog opens, indicating if the DTD file was successfully validated
30or not. If the file is invalid, any errors will appear in the Problems view.
31 <p><b>Note</b>: If you receive an error message indicating
32that the Problems view is full, you can increase the number of error messages
syeshin8e5cd5c2005-11-17 18:51:24 +000033allowed 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
syeshin6e211042005-10-27 17:42:51 +000034of error messages allowed. You might have to select the <span class="uicontrol"><b>Override
syeshin8e5cd5c2005-11-17 18:51:24 +000035validation preferences</span></b> check box in order to enable the <span class="uicontrol"><b>Maximum
syeshin6e211042005-10-27 17:42:51 +000036number of validation messages</b></span> field.</p>
syeshin17ed4a62005-07-25 17:10:24 +000037<p>You can set up project's
38properties so that different types of project resources are automatically
syeshin6e211042005-10-27 17:42:51 +000039validated when you save them. From a project's pop-up menu select <b><span class="uicontrol">Properties</span></b>,
40then select <span class="uicontrol"><b>Validation</b></span>. Any validators you can run
syeshin17ed4a62005-07-25 17:10:24 +000041against your project will be listed in the Validation page. </p>
42</div>
43</div>
syeshin6e211042005-10-27 17:42:51 +000044
45<div>
46<p>
47<b class="parentlink">Parent topic:</b> <a href="../topics/cworkdtds.html" title="Working with DTDs">Working with DTDs</a><br />
48</p>
49
50</div>
syeshin17ed4a62005-07-25 17:10:24 +000051</body>
52</html>