Esempio n. 1
0
        private static XmlSchemaSet CreateSchema()
        {
            var schemas = new XmlSchemaSet {
                XmlResolver = new ResourceXmlResolver()
            };

            schemas.Add(DDEXSchemaLoader.LoadSchema("release-notification.xsd"));
            schemas.Compile();
            return(schemas);
        }
        public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
        {
            string file = Path.GetFileName(absoluteUri.AbsolutePath);

            return(DDEXSchemaLoader.GetSchemaStream(file));
        }