how i change "level" validation ant's xmlvalidate assign provides?
i am attempting ant's xmlvalidate assign countenance an xml request opposing dtd. problem doesn't work, nonetheless works too well. dtd contains an xref component an "@linkend" charge form idref. many anxiety ids outmost tide document. since this, build fails, given parser complains id idref referencing doesn't exist. so, there any proceed i countenance xml request opposing dtd, nonetheless replace errors type?
a few things i've tried: sourroundings "lenient" choice xmlvalidate creates assign wholly check document's well-formedness, it's outcome opposing dtd. lists jaxp sax options set, nonetheless zero seem applicable.
here's code:
<target name="validate">
<echo message="validating ${input}"/>
<xmlvalidate file="${input}" failonerror="yes"
classname="org.apache.xml.resolver.tools.resolvingxmlreader">
<classpath refid="xslt.processor.classpath"/>
</xmlvalidate>
</target>
as see, i'm controlling resolvingxmlreader solve dtd opposing catalog open identifiers. however, i same function i mention dtd directly controlling nested xmlcatalog element.
Comments
Post a Comment