title: How to validate an XML document using a RELAX NG schema and JAXP?
body: <p>I would like to validate XML documents using RELAX NG schemata, and I would like to use <a href="https://jaxp-sources.dev.java.net/nonav/docs/api/javax/xml/validation/package-summary.html" rel="noreferrer">the JAXP validation API</a>.</p>
  
  <p>From Googling around, it appeared that I could use <a href="http://www.thaiopensource.com/relaxng/jing.html" rel="noreferrer">Jing</a> and the <a href="https://isorelax-jaxp-bridge.dev.java.net/" rel="noreferrer">ISO RELAX JARV to JAXP Bridge</a>. Unfortunately, after adding both to my classpath, I can't get it to work. <code>SchemaFactory</code> is just throwing an <code>IllegalArgumentException</code> as soon as it tries to instantiate a factory — I looked inside <code>SchemaFactory</code>, apparently <code>SchemaFactoryFinder</code> is returning a null result.</p>
  
  <p>So I'd appreciate answers to either question:</p>
  
  <ul>
  <li>How can I make this work with Jing and this bridge?</li>
  <li>Is there a better/different set of libraries I should try?</li>
  </ul>
  
  <p>I need this to work with Java 5 and Java 6.</p>
  
  <p>Thanks!</p>