Ejemplo n.º 1
0
        public XmlSchemaLoader(string schemaFile, string ruleFile)
        {
            var ruleLoader = new XMLRuleLoader(ruleFile);
            RuleConfigList = ruleLoader.RuleConfigList;
            tableRules = ruleLoader.TableRules;
            Functions = ruleLoader.Functions;
            ruleLoader = null;

            dataSources = new Dictionary<string, DataSourceConfig>();
            dataNodes = new Dictionary<string, DataNodeConfig>();
            schemas = new Dictionary<string, SchemaConfig>();
            Load(DefaultDtd, schemaFile ?? DefaultXml);
        }
Ejemplo n.º 2
0
        public XmlSchemaLoader(string schemaFile, string ruleFile)
        {
            var ruleLoader = new XMLRuleLoader(ruleFile);

            RuleConfigList = ruleLoader.RuleConfigList;
            tableRules     = ruleLoader.TableRules;
            Functions      = ruleLoader.Functions;
            ruleLoader     = null;

            dataSources = new Dictionary <string, DataSourceConfig>();
            dataNodes   = new Dictionary <string, DataNodeConfig>();
            schemas     = new Dictionary <string, SchemaConfig>();
            Load(DefaultDtd, schemaFile ?? DefaultXml);
        }