I would like to validate XML documents using RELAX NG schemata, and I would like to use the JAXP validation API.
From Googling around, it appeared that I could use Jing and the ISO RELAX JARV to JAXP Bridge. Unfortunately, after adding both to my classpath, I can't get it to work. SchemaFactory
is just throwing an IllegalArgumentException
as soon as it tries to instantiate a factory — I looked inside SchemaFactory
, apparently SchemaFactoryFinder
is returning a null result.
So I'd appreciate answers to either question:
- How can I make this work with Jing and this bridge?
- Is there a better/different set of libraries I should try?
I need this to work with Java 5 and Java 6.
Thanks!
See Stefan Bodewig's Weblog written on March 7, 2008 titled RELAX NG Validation in XMLUnit:
...
To read the comments on Kohsuke Kawaguchi's blog, you have to use archive.org because somehow they are all gone now: