internal bool PreprocessSchema(ref XmlSchema schema, string targetNamespace) { Preprocessor prep = new Preprocessor(nameTable, GetSchemaNames(nameTable), eventHandler, compilationSettings); prep.XmlResolver = readerSettings.GetXmlResolver(); prep.ReaderSettings = readerSettings; prep.SchemaLocations = schemaLocations; prep.ChameleonSchemas = chameleonSchemas; bool hasErrors = prep.Execute(schema, targetNamespace, true); schema = prep.RootSchema; //For any root level chameleon cloned return hasErrors; }
internal bool PreprocessSchema(ref XmlSchema schema, string targetNamespace) { Preprocessor preprocessor = new Preprocessor(this.nameTable, this.GetSchemaNames(this.nameTable), this.eventHandler, this.compilationSettings) { XmlResolver = this.readerSettings.GetXmlResolver(), ReaderSettings = this.readerSettings, SchemaLocations = this.schemaLocations, ChameleonSchemas = this.chameleonSchemas }; bool flag = preprocessor.Execute(schema, targetNamespace, true); schema = preprocessor.RootSchema; return flag; }