Exemplo n.º 1
0
        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);
            }
        }