4
<title>XMLValidate Task</title>
9
<h2><a name="xmlvalidate">XMLValidate</a></h2>
12
This task checks xml files are valid (or only well formed). The task uses crimson SAX2 parser implementation by default, but one can specify any SAX1/2 parser if needed
16
<table border="1" cellpadding="2" cellspacing="0">
18
<td valign="top"><b>Attribute</b></td>
19
<td valign="top"><b>Description</b></td>
20
<td align="center" valign="top"><b>Required</b></td>
23
<td valign="top">file</td>
24
<td valign="top">the file(s) you want to check. (optionally can use an embedded fileset)</td>
25
<td valign="top" align="center">No</td>
28
<td valign="top">lenient</td>
30
if true, only check the xml document is well formed
31
(ignored if the specified parser is as SAX1 parser)
33
<td valign="top" align="center">No</td>
36
<td valign="top">classname</td>
37
<td valign="top">the parser to use. (default: crimson).</td>
38
<td align="center" valign="top">No</td>
41
<td valign="top">classpathref</td>
42
<td valign="top">where to find the parser class. Optionally can use an embedded classpath element.</td>
43
<td align="center" valign="top">No</td>
46
<td valign="top">failonerror</td>
47
<td valign="top">fails on a error if set to true (defaults to true).</td>
48
<td align="center" valign="top">No</td>
51
<td valign="top">warn</td>
52
<td valign="top">log parser warn events.</td>
53
<td align="center" valign="top">No</td>
58
<xmlvalidate file="toto.xml"/>
60
<xmlvalidate failonerror="no" lenient="yes" warn="yes"
61
classname="org.apache.xerces.parsers.SAXParser" >
62
classpath="lib/xerces.jar">
63
<fileset dir="src" includes="style/*.xsl"/>
68
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights