use of com.thaiopensource.relaxng.SchemaFactory in project camel by apache.
the class JingEndpoint method doStart.
@Override
protected void doStart() throws Exception {
super.doStart();
if (inputSource == null) {
ObjectHelper.notEmpty(resourceUri, "resourceUri", this);
InputStream inputStream = ResourceHelper.resolveMandatoryResourceAsInputStream(getCamelContext(), resourceUri);
inputSource = new InputSource(inputStream);
}
if (schemaFactory == null) {
schemaFactory = new SchemaFactory();
schemaFactory.setCompactSyntax(compactSyntax);
schemaFactory.setXMLReaderCreator(new Jaxp11XMLReaderCreator());
}
if (schema == null) {
schema = schemaFactory.createSchema(inputSource);
}
}
Aggregations