kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
kprice | 8ca223b | 2007-04-05 03:35:57 +0000 | [diff] [blame] | 2 | <!--Arbortext, Inc., 1988-2006, v.4002-->
|
| 3 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
| 4 | "task.dtd">
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 5 | <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
|
| 11 | see 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
|
| 18 | well-formed. The editor uses heuristics to open a file using the best interpretation
|
| 19 | of the tagging that it can. For example, an element with a missing end tag
|
| 20 | is simply assumed to end at the end of the document. As you make updates to
|
| 21 | a file, the editor incrementally reinterprets your document, changing the
|
| 22 | highlighting, tree view, and so on. Many formation errors are easy to spot
|
| 23 | in the syntax highlighting, so you can easily correct obvious errors on-the-fly.
|
| 24 | However, there will be other cases when it will be beneficial to perform formal
|
| 25 | validation on your documents.</p></context>
|
| 26 | <steps>
|
| 27 | <step><cmd>You can validate your file by selecting it in the Navigator view,
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 28 | right-clicking it, and clicking <uicontrol>Validate</uicontrol>.</cmd>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 29 | </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,
|
| 33 | and you will be taken to the invalid tag in the file, so that you can make
|
| 34 | corrections. </p><p><b>Note</b>: If you receive an error message indicating
|
| 35 | that the Problems view is full, you can increase the number of error messages
|
| 36 | allowed by selecting <menucascade><uicontrol>Properties</uicontrol><uicontrol>Validation</uicontrol>
|
| 37 | </menucascade> from the project's pop-up menu and specifying the maximum number
|
| 38 | of error messages allowed. You must select the <uicontrol>Override validation
|
| 39 | preferences</uicontrol> check box in order to be able to do this.</p><p>As
|
| 40 | well, you can set up a project's properties so that different types of project
|
| 41 | resources are automatically validated when you save them. From a project's
|
| 42 | pop-up menu select <uicontrol>Properties</uicontrol>, then select <uicontrol>Validation</uicontrol>.
|
| 43 | Any validators you can run against your project will be listed in the Validation
|
| 44 | page.</p></postreq>
|
| 45 | </taskbody>
|
| 46 | <related-links>
|
| 47 | <link href="../../org.eclipse.jst.j2ee.doc.user/topics/tjval.dita" scope="peer">
|
kprice | 38ea4e1 | 2007-04-05 03:22:56 +0000 | [diff] [blame] | 48 | <linktext>Validating code in enterprise applications</linktext></link>
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 49 | </related-links>
|
| 50 | </task>
|
kprice | 38ea4e1 | 2007-04-05 03:22:56 +0000 | [diff] [blame] | 51 | <?Pub *0000002727?>
|