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