relaxng の validation
xml - Using Jing with Google App Engine. Can't load SchemaFactory given Relax NG schema. - Stack Overflow
http://stackoverflow.com/questions/4983057/using-jing-with-google-app-engine-cant-load-schemafactory-given-relax-ng-schema
<dependency> <groupId>com.thaiopensource</groupId> <artifactId>jing</artifactId> <version>20091111</version> </dependency>
import com.thaiopensource.relaxng.jaxp.XMLSyntaxSchemaFactory; SchemaFactory factory = new XMLSyntaxSchemaFactory(); Source schemaFile = new StreamSource(new File("sources.rng")); //Source schemaFile = new StreamSource(inputStream); Schema schema = factory.newSchema(schemaFile);
少なくともschemaがnullでないということはわかった。