Page 1 of 1
Validate an XML file with NVDL and Apache Ant
Posted: Wed Nov 01, 2023 6:20 pm
by xephon
Hi,
I'd like to validate an XML file with NVDL via Apache Ant, like I can do it with
https://relaxng.org/jclark/jing-ant.html and Relax NG. But I could not find a solution. Do you have an idea how to do that?
Thanks a lot
Re: Validate an XML file with NVDL and Apache Ant
Posted: Wed Nov 08, 2023 11:36 pm
by xephon
I assume that no answer can be interpreted as "there is no solution".

Re: Validate an XML file with NVDL and Apache Ant
Posted: Thu Nov 09, 2023 8:21 am
by Radu
Hi Stefan,
Sorry, I did not see your initial post.
It seems we are using Jing in Oxygen to validate with the NVDL schema.
So why not use the same with NVDL as you do with RNG?
Regards,
Radu
Re: Validate an XML file with NVDL and Apache Ant
Posted: Thu Nov 09, 2023 7:53 pm
by xephon
Hi Radu, I don't know how to do it in Apache Ant. The <jing> task seems to only work with a Relax NG file:
https://relaxng.org/jclark/jing-ant.html
Code: Select all
<project name="example" default="validate" basedir=".">
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"/>
<target name="validate">
<jing rngfile="xslt.rng">
<fileset dir="xsl" includes="**/*.xsl"/>
</jing>
</target>
</project>
Re: Validate an XML file with NVDL and Apache Ant
Posted: Fri Nov 10, 2023 9:39 am
by Radu
Hi Stefan,
From looking at the Java code of "com.thaiopensource.relaxng.util.JingTask" I think you should take your chances and point the "rngfile" attribute to the NVDL schema because it might just work.
Radu