From 8217bd377d7512b366e636d706ed3fec723c4806 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Sat, 19 Jan 2002 21:19:42 +0000 Subject: [PATCH] added documentation git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270790 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/xmlvalidate.html | 41 ++++++++++++++++++---- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/docs/manual/OptionalTasks/xmlvalidate.html b/docs/manual/OptionalTasks/xmlvalidate.html index 0fd36ba7b..8b8052a36 100644 --- a/docs/manual/OptionalTasks/xmlvalidate.html +++ b/docs/manual/OptionalTasks/xmlvalidate.html @@ -53,19 +53,48 @@ No + +

Nested Elements

+

dtd

+<dtd> is used to specify different locations for DTD resolution. + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
publicIdPublic ID of the DTD to resolveYes
locationLocation of the DTD to use, which can be a file, + a resource, or a URLYes
+ +

Examples

 <xmlvalidate file="toto.xml"/>
 
-    <xmlvalidate failonerror="no" lenient="yes" warn="yes"
-	         classname="org.apache.xerces.parsers.SAXParser" >
-	         classpath="lib/xerces.jar">
-        <fileset dir="src" includes="style/*.xsl"/>  
-    </xmlvalidate>
+<xmlvalidate failonerror="no" lenient="yes" warn="yes"
+             classname="org.apache.xerces.parsers.SAXParser" >
+             classpath="lib/xerces.jar">
+  <fileset dir="src" includes="style/*.xsl"/>  
+</xmlvalidate>
+    
+<xmlvalidate file="struts-config.xml" warn="false">
+  <dtd publicId="-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
+       location="struts-config_1_0.dtd"/>
+</xmlvalidate>
 

-

Copyright © 2001 Apache Software Foundation. All rights +

Copyright © 2001-2002 Apache Software Foundation. All rights Reserved.