static public void setUp() throws FileNotFoundException {
InputStream is = new FileInputStream(Resources.asURI("XMLSCHEMA-30/test.xsd"));
XmlSchemaCollection schemaCol = new XmlSchemaCollection();
schemaCol.read(new StreamSource(is));
BASE_SCHEMA = schemaCol.schemaForNamespace(Constants.URI_2001_SCHEMA_XSD);
CUSTOM_SCHEMA = schemaCol.schemaForNamespace(CUSTOM_SCHEMA_NS);
}
@Test
public void testXmlSchemaTypes() {
XmlSchemaType stringSimpleType = BASE_SCHEMA.getTypeByName( Constants.XSD_STRING );