You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?xml version="1.0" encoding="UTF-8" ?>
- <project name="validate" default="testValidate" basedir=".">
-
- <target name="testValidate">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="xml/doc.dtd"/>
- </xmlvalidate>
- </target>
-
- <target name="testDeepValidate">
- <ant dir="xml"
- antfile="validate.xml"
- target="testValidate"/>
- </target>
-
- <target name="xmlcatalog">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalognested">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <entity publicID = "bogusImage"
- location = "/i/dont/exist.jpg"/>
- <xmlcatalog>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalogfiles">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <catalogfiles dir="xml" includes="catalog"/>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="testSchemaGood">
- <xmlvalidate warn="false" lenient="no" >
- <fileset dir="xml" includes="endpiece.xml"/>
-
- <attribute name="http://xml.org/sax/features/validation"
- value="false"/>
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="false"/>
-
- </xmlvalidate>
- </target>
-
- <target name="testSchemaBad">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="endpiece2.xml"/>
-
- <attribute name="http://xml.org/sax/features/validation"
- value="true"/>
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="true"/>
- </xmlvalidate>
- </target>
-
- </project>
|