Browse Source

point to schemavalidate

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@368033 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 19 years ago
parent
commit
591d233731
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      docs/manual/OptionalTasks/xmlvalidate.html

+ 6
- 3
docs/manual/OptionalTasks/xmlvalidate.html View File

@@ -212,10 +212,13 @@ Scan all XML files in the project, using the catalog defined inline.
<attribute name="http://xml.org/sax/features/namespaces" value="true"/>
</xmlvalidate>
</pre>
Validate all .xml files in xml directory with the parser configured to perform schema validation. Note: The parser must support the
<pre>http://apache.org/xml/features/validation/schema</pre> feature.
Validate all .xml files in xml directory with the parser configured to perform XSD validation.
Note: The parser must support the feature
<code>http://apache.org/xml/features/validation/schema</code>.
The <a href="schemavalidate.html">schemavalidate</a> task is better for validating
W3C XML Schemas, as it extends this task with the right options automatically enabled,
and makes it easy to add a list of schema files/URLs to act as sources.

<br>
<pre>
<!-- Converts path to URL format -->
&lt;pathconvert dirsep="/" property="xsd.file"&gt;


Loading…
Cancel
Save