protected internal virtual XmlSchema CreateSchema(string location) { Uri cmmnSchema = ReflectUtil.GetResource(location); try { return(new XmlSchema() { SourceUri = cmmnSchema.AbsolutePath }); //return schemaFactory.newSchema(cmmnSchema); } catch (XmlSchemaException) { throw new ModelValidationException("Unable to parse schema:" + cmmnSchema); } }