2 writes to rootSchema
System.Xml (2)
System\Xml\Schema\Preprocessor.cs (2)
87rootSchema = schema; //Need to lock main schema here 110rootSchema = GetChameleonSchema(targetNamespace, rootSchema); //Chameleon include at top-level
24 references to rootSchema
System.Xml (24)
System\Xml\Schema\Preprocessor.cs (24)
91rootSchema.ImportedSchemas.Clear(); 92rootSchema.ImportedNamespaces.Clear(); 95if (rootSchema.BaseUri != null) { 96if (schemaLocations[rootSchema.BaseUri] == null) { 97schemaLocations.Add(rootSchema.BaseUri, rootSchema); 101if (rootSchema.TargetNamespace != null) { 103targetNamespace = rootSchema.TargetNamespace; 105else if (targetNamespace != rootSchema.TargetNamespace) { 106SendValidationEvent(Res.Sch_MismatchTargetNamespaceEx, targetNamespace, rootSchema.TargetNamespace, rootSchema); 110rootSchema = GetChameleonSchema(targetNamespace, rootSchema); //Chameleon include at top-level 113LoadExternals(rootSchema); 115BuildSchemaList(rootSchema); 129rootSchemaForRedefine = rootSchema; 130Preprocess(rootSchema, targetNamespace, rootSchema.ImportedSchemas); 154rootSchema.IsPreprocessed = !HasErrors; //For chameleon at top-level 217return rootSchema; //This is required to get back a cloned chameleon 603if (includedSchema != rootSchema) { 609if (!rootSchema.ImportedNamespaces.Contains(importNS)) { 610rootSchema.ImportedNamespaces.Add(importNS); 1213if (rootSchema.IdentityConstraints[constraint.QualifiedName] != null) { 1218rootSchema.IdentityConstraints.Add(constraint.QualifiedName, constraint);