示例#1
0
        private XmlSchema LoadMenuItemsSchema()
        {
            XmlDocument xmlSchemaDoc = XmlLoader.FromEmbeddedResource(Assembly.GetAssembly(typeof(XmlDataAdapter)),
                                                                      "PhuLiNet.Plugin.Application.DataAdapter.PluginApp.xsd");
            XmlSchema menuItems = null;

            using (var xnr = new XmlNodeReader(xmlSchemaDoc))
            {
                menuItems = XmlSchema.Read(xnr, SchemaValidationEventHandler);
            }

            return(menuItems);
        }