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