I really need to be able to validate XML against an XSD, using Ant
1.5.4 and JDK 1.4.2. It appears this is straightforward to do with the
latest Ant release and/or the latest JDK, but not with the releases
that I'm limited to.
I noticed the "iso-relax" sourceforge project, which includes the JARV
library (which contains the Ant task). This was promising, but it
causes an NPE to be thrown in Xerces' XMLSchemaValidator class, and I
have no idea why.
I'm querying the ant-user mlist about this, but I figured this would be
another good place to try.
E.Otter - 18 Jul 2005 03:34 GMT
Buried somewhere in the documentation for the 1.4 JDK is a statement that
the included XML parser class cannot do schema validation (DTD validation:
yes, Schema validation: no). However, I believe that Ant uses the XML
parser in its ANT_HOME/lib directory. You probably have an older xerxes.jar
and the your best bet is to delete that and download the latest xerces.jar
and drop it into the ANT_HOME/lib directory.
> I really need to be able to validate XML against an XSD, using Ant
> 1.5.4 and JDK 1.4.2. It appears this is straightforward to do with the
[quoted text clipped - 8 lines]
> I'm querying the ant-user mlist about this, but I figured this would be
> another good place to try.