Browse Source

Docs fixes for xmlvalidate.html

PR: 27092
Obtained from: Jesse Glick


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276152 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
57c40e724d
2 changed files with 20 additions and 14 deletions
  1. +1
    -0
      WHATSNEW
  2. +19
    -14
      docs/manual/OptionalTasks/xmlvalidate.html

+ 1
- 0
WHATSNEW View File

@@ -55,6 +55,7 @@ Fixed bugs:
Other changes: Other changes:
-------------- --------------


* Docs fixes for xmlvalidate.html. Bugzilla Report 27092.


Changes from Ant 1.6.0 to Ant 1.6.1 Changes from Ant 1.6.0 to Ant 1.6.1
============================================= =============================================


+ 19
- 14
docs/manual/OptionalTasks/xmlvalidate.html View File

@@ -9,15 +9,18 @@
<h2><a name="xmlvalidate">XMLValidate</a></h2> <h2><a name="xmlvalidate">XMLValidate</a></h2>
<h3>Description</h3> <h3>Description</h3>


<p>This task checks xml files are valid (or only well formed). The
<p>This task checks that XML files are valid (or only well formed). The
task uses the SAX2 parser implementation provided by JAXP by default task uses the SAX2 parser implementation provided by JAXP by default
(probably the one that is used by Ant itself), but one can specify any (probably the one that is used by Ant itself), but one can specify any
SAX1/2 parser if needed.</p> SAX1/2 parser if needed.</p>


<p>This task supports the use of nested <p>This task supports the use of nested
<li/><a href="../CoreTypes/xmlcatalog.html"><tt>&lt;xmlcatalog&gt;</tt></a> elements
<li/><tt>&lt;dtd&gt;</tt> elements which are used to resolve DTDs and entities.
<li/><tt>&lt;attribute&gt;</tt> elements which are used to set features on the parser. These can be any number of <a href="http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description">http://xml.org/sax/features/</a> or other features that your parser may support.
<li><a href="../CoreTypes/xmlcatalog.html"><tt>&lt;xmlcatalog&gt;</tt></a> elements</li>
<li><tt>&lt;dtd&gt;</tt> elements which are used to resolve DTDs and entities</li>
<li><tt>&lt;attribute&gt;</tt> elements which are used to set features on the parser.
These can be any number of
<a href="http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description"><tt>http://xml.org/sax/features/</tt></a>
or other features that your parser may support.</li>
</p> </p>


<h3>Parameters</h3> <h3>Parameters</h3>
@@ -35,8 +38,8 @@ SAX1/2 parser if needed.</p>
<tr> <tr>
<td valign="top">lenient</td> <td valign="top">lenient</td>
<td valign="top"> <td valign="top">
if true, only check the xml document is well formed
(ignored if the specified parser is as SAX1 parser)
if true, only check the XML document is well formed
(ignored if the specified parser is a SAX1 parser)
</td> </td>
<td valign="top" align="center">No</td> <td valign="top" align="center">No</td>
</tr> </tr>
@@ -47,7 +50,7 @@ SAX1/2 parser if needed.</p>
</tr> </tr>
<tr> <tr>
<td valign="top">classpathref</td> <td valign="top">classpathref</td>
<td valign="top">where to find the parser class. Optionally can use an embedded classpath element.</td>
<td valign="top">where to find the parser class. Optionally can use an embedded <tt>&lt;classpath&gt;</tt> element.</td>
<td align="center" valign="top">No</td> <td align="center" valign="top">No</td>
</tr> </tr>
<tr> <tr>
@@ -64,7 +67,9 @@ SAX1/2 parser if needed.</p>


<h3><a name="nested">Nested Elements</a></h3> <h3><a name="nested">Nested Elements</a></h3>
<h4>dtd</h4> <h4>dtd</h4>
&lt;dtd&gt; is used to specify different locations for DTD resolution.
<p>
<tt>&lt;dtd&gt;</tt> is used to specify different locations for DTD resolution.
</p>
<table border="1" cellpadding="2" cellspacing="0"> <table border="1" cellpadding="2" cellspacing="0">
<tr> <tr>
<td width="12%" valign="top"><b>Attribute</b></td> <td width="12%" valign="top"><b>Attribute</b></td>
@@ -84,14 +89,14 @@ SAX1/2 parser if needed.</p>
</tr> </tr>
</table> </table>
<h4>xmlcatalog</h4> <h4>xmlcatalog</h4>
<p>The <a href="../CoreTypes/xmlcatalog.html">xmlcatalog</a>
element is used to perform Entity resolution.</p>
<p>The <a href="../CoreTypes/xmlcatalog.html"><tt>&lt;xmlcatalog&gt;</tt></a>
element is used to perform entity resolution.</p>
<h4>attribute</h4> <h4>attribute</h4>
<p>The attribute element is used to set SAX Parser features.
There can an arbitrary amount of attribute set as defined here:
<a href="http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description">http://xml.org/sax/features/</a>
<p>The <tt>&lt;attribute&gt;</tt> element is used to set SAX Parser features.
There can be any number of attributes set, as defined here:
<a href="http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description"><tt>http://xml.org/sax/features/</tt></a>
A feature essentialy changes the mode of the parser. A feature essentialy changes the mode of the parser.
&lt;attribute&gt; an attribute is used to set specific features on the parser.
</p>
<table border="1" cellpadding="2" cellspacing="0"> <table border="1" cellpadding="2" cellspacing="0">
<tr> <tr>
<td width="12%" valign="top"><b>Attribute</b></td> <td width="12%" valign="top"><b>Attribute</b></td>


Loading…
Cancel
Save