Name
xmlvalidate
Synopsis
Verifies that XML documents are well-formed, and optionally, whether they are valid, using any SAX parser.
Attributes
-
classname
(1.4, String, N) The Java class name of the SAX parser to use.
-
classpath
(1.4, Path, N) The classpath to use.
-
classpathref
(1.4, Reference, N) Reference to a classpath defined elsewhere in the buildfile.
-
failonerror
(1.4, boolean, N) If
true
, abort the build on failures. Defaults totrue
.-
file
(1.4, File, N) The XML file to validate. Use nested
<fileset>
elements to specify multiple files.-
lenient
(1.4, boolean, N) If
true
, verify the XML is well-formed, but do not validate. Works only when using a SAX2 parser. Defaults tofalse
.-
warn
(1.4, boolean, N) If
true
, write warnings to the log. Defaults totrue
.
Content
- 0,1 nested
<classpath>
elements (1.4) A
path
element used in place of theclasspath
orclasspathref
attributes.- 0..n nested
<fileset>
elements (1.4) One or more
fileset
elements specifying XML files to validate, used in place of the file attribute.
Get Ant: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.