use of org.apache.xerces.jaxp.validation.XMLSchemaFactory in project webtools.sourceediting by eclipse.
the class MiscFunctionsTest method loadSchema.
private Schema loadSchema() throws SAXException {
String schemaFile = "/TestSources/id.xsd";
SchemaFactory schemaFactory = new XMLSchemaFactory();
URL schemaURL = bundle.getEntry(schemaFile);
Schema jaxpschema = schemaFactory.newSchema(schemaURL);
return jaxpschema;
}
use of org.apache.xerces.jaxp.validation.XMLSchemaFactory in project webtools.sourceediting by eclipse.
the class NumericEqualSITest method loadSchema.
private Schema loadSchema() throws SAXException {
String schemaFile = "/TestSources/userdefined.xsd";
SchemaFactory schemaFactory = new XMLSchemaFactory();
URL schemaURL = bundle.getEntry(schemaFile);
Schema jaxpschema = schemaFactory.newSchema(schemaURL);
return jaxpschema;
}
use of org.apache.xerces.jaxp.validation.XMLSchemaFactory in project webtools.sourceediting by eclipse.
the class SeqExprCastSITest method loadSchema.
private Schema loadSchema() throws SAXException {
String schemaFile = "/TestSources/userdefined.xsd";
SchemaFactory schemaFactory = new XMLSchemaFactory();
URL schemaURL = bundle.getEntry(schemaFile);
Schema jaxpschema = schemaFactory.newSchema(schemaURL);
return jaxpschema;
}
use of org.apache.xerces.jaxp.validation.XMLSchemaFactory in project webservices-axiom by apache.
the class TestValidator method runTest.
protected void runTest() throws Throwable {
SchemaFactory factory = new XMLSchemaFactory();
DocumentBuilder builder = dbf.newDocumentBuilder();
Schema schema = factory.newSchema(new DOMSource(builder.parse(TestValidator.class.getResourceAsStream("ipo.xsd"))));
Validator validator = schema.newValidator();
validator.validate(new DOMSource(builder.parse(TestValidator.class.getResourceAsStream("ipo_1.xml"))));
}
use of org.apache.xerces.jaxp.validation.XMLSchemaFactory in project webtools.sourceediting by eclipse.
the class SeqExprCastSITest method loadAtomicSchema.
private Schema loadAtomicSchema() throws SAXException {
String schemaFile = "/TestSources/atomic.xsd";
SchemaFactory schemaFactory = new XMLSchemaFactory();
URL schemaURL = bundle.getEntry(schemaFile);
Schema jaxpschema = schemaFactory.newSchema(schemaURL);
return jaxpschema;
}
Aggregations