private static XmlSchemaSet compileValidationSchemas()
        {
            var resolver = new CoreZipArtifactSource();

            XmlSchemaSet schemas = new XmlSchemaSet();

            foreach(var schemaName in minimalSchemas)
            {
                using (var schema = resolver.ReadContentArtifact(schemaName))
                {
                    if(schema == null)
                        throw new FileNotFoundException("Cannot find manifest resources that represent the minimal set of schemas required for validation");

                    schemas.Add(null, XmlReader.Create(schema));   // null = use schema namespace as specified in schema file
                    schema.Dispose();
                }
            }

            schemas.Compile();

            return schemas;
        }
        private static XmlSchemaSet compileValidationSchemas()
        {
            var resolver = new CoreZipArtifactSource();

            XmlSchemaSet schemas = new XmlSchemaSet();

            foreach (var schemaName in minimalSchemas)
            {
                using (var schema = resolver.ReadContentArtifact(schemaName))
                {
                    if (schema == null)
                    {
                        throw new FileNotFoundException("Cannot find manifest resources that represent the minimal set of schemas required for validation");
                    }

                    schemas.Add(null, XmlReader.Create(schema));   // null = use schema namespace as specified in schema file
                    schema.Dispose();
                }
            }

            schemas.Compile();

            return(schemas);
        }
        public void GetSomeBundledArtifacts()
        {
            var za = new CoreZipArtifactSource();
            za.Prepare();

            using (var a = za.ReadContentArtifact("patient.sch"))
            {
                Assert.IsNotNull(a);
            }

            using (var a = za.ReadContentArtifact("core-valuesets-v3.xml"))
            {
                Assert.IsNotNull(a);
            }

            using (var a = za.ReadContentArtifact("patient.xsd"))
            {
                Assert.IsNotNull(a);
            }
        }