blob: 70f3329dc52eeee706da64d55df266a305c53e96 [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--Arbortext, Inc., 1988-2005, v.4002-->
3<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
4<task id="twxvalid" xml:lang="en-us">
5<title>Validating XML files</title>
6<titlealts>
7<searchtitle>Validating XML files</searchtitle>
8</titlealts>
9<shortdesc>When you validate your XML file, the XML validator will check to
10see that your file is valid and well-formed.</shortdesc>
11<prolog><metadata>
12<keywords><indexterm>XML files<indexterm>validating</indexterm></indexterm>
13</keywords>
14</metadata></prolog>
15<taskbody>
16<context><p>The XML editor will process XML files that are invalid or not
17well-formed. The editor uses heuristics to open a file using the best interpretation
18of the tagging that it can. For example, an element with a missing end tag
19is simply assumed to end at the end of the document. As you make updates to
20a file, the editor incrementally reinterprets your document, changing the
21highlighting, tree view, and so on. Many formation errors are easy to spot
22in the syntax highlighting, so you can easily correct obvious errors on-the-fly.
23However, there will be other cases when it will be beneficial to perform formal
24validation on your documents.</p></context>
25<steps>
26<step><cmd>You can validate your file by selecting it in the Navigator view,
kprice38ea4e12007-04-05 03:22:56 +000027right-clicking it, and clicking <uicontrol>Validate<?Pub Caret?></uicontrol>.</cmd>
kpriceef160682006-08-29 18:08:31 +000028</step>
29</steps>
30<result><p>Any validation problems are indicated in the Problems view. </p></result>
31<postreq><p>In the Problems view, you can double-click on individual errors,
32and you will be taken to the invalid tag in the file, so that you can make
33corrections. </p><p><b>Note</b>: If you receive an error message indicating
34that the Problems view is full, you can increase the number of error messages
35allowed by selecting <menucascade><uicontrol>Properties</uicontrol><uicontrol>Validation</uicontrol>
36</menucascade> from the project's pop-up menu and specifying the maximum number
37of error messages allowed. You must select the <uicontrol>Override validation
38preferences</uicontrol> check box in order to be able to do this.</p><p>As
39well, you can set up a project's properties so that different types of project
40resources are automatically validated when you save them. From a project's
41pop-up menu select <uicontrol>Properties</uicontrol>, then select <uicontrol>Validation</uicontrol>.
42Any validators you can run against your project will be listed in the Validation
43page.</p></postreq>
44</taskbody>
45<related-links>
46<link href="../../org.eclipse.jst.j2ee.doc.user/topics/tjval.dita" scope="peer">
kprice38ea4e12007-04-05 03:22:56 +000047<linktext>Validating code in enterprise applications</linktext></link>
kpriceef160682006-08-29 18:08:31 +000048</related-links>
49</task>
kprice38ea4e12007-04-05 03:22:56 +000050<?Pub *0000002727?>