2 writes to _rootSchema
System.Private.Xml (2)
System\Xml\Schema\Preprocessor.cs (2)
89
_rootSchema
= schema; // Need to lock main schema here
118
_rootSchema
= GetChameleonSchema(targetNamespace, _rootSchema); //Chameleon include at top-level
24 references to _rootSchema
System.Private.Xml (24)
System\Xml\Schema\Preprocessor.cs (24)
93
_rootSchema
.ImportedSchemas.Clear();
94
_rootSchema
.ImportedNamespaces.Clear();
97
if (
_rootSchema
.BaseUri != null)
99
if (_schemaLocations![
_rootSchema
.BaseUri] == null)
101
_schemaLocations.Add(
_rootSchema
.BaseUri,
_rootSchema
);
105
if (
_rootSchema
.TargetNamespace != null)
109
targetNamespace =
_rootSchema
.TargetNamespace;
111
else if (targetNamespace !=
_rootSchema
.TargetNamespace)
113
SendValidationEvent(SR.Sch_MismatchTargetNamespaceEx, targetNamespace,
_rootSchema
.TargetNamespace,
_rootSchema
);
118
_rootSchema = GetChameleonSchema(targetNamespace,
_rootSchema
); //Chameleon include at top-level
122
LoadExternals(
_rootSchema
);
125
BuildSchemaList(
_rootSchema
);
138
_rootSchemaForRedefine =
_rootSchema
;
139
Preprocess(
_rootSchema
, targetNamespace,
_rootSchema
.ImportedSchemas);
169
_rootSchema
.IsPreprocessed = !HasErrors; //For chameleon at top-level
236
return
_rootSchema
; //This is required to get back a cloned chameleon
688
if (includedSchema !=
_rootSchema
)
696
if (!
_rootSchema
!.ImportedNamespaces.Contains(importNS))
698
_rootSchema
.ImportedNamespaces.Add(importNS);
1449
if (
_rootSchema
!.IdentityConstraints[constraint.QualifiedName] != null)
1456
_rootSchema
.IdentityConstraints.Add(constraint.QualifiedName, constraint);