12 writes to Schema
System.Private.Xml (12)
System\Xml\Schema\Inference\Infer.cs (2)
467import.Schema = xs; 572import.Schema = xs;
System\Xml\Schema\Preprocessor.cs (5)
318include.Schema = Preprocessor.GetBuildInSchema(); 353include.Schema = (XmlSchema)obj; 389include.Schema = includedSchema; 415include.Schema = (XmlSchema)_schemaLocations[ruri]!; // Set schema object even for duplicates 638include.Schema = externalSchema; //Reset the schema property to the cloned schema
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
168include.Schema = xsc[importNS]; //Fetch it from the collection 171include.Schema = include.Schema.Clone(); 188subImp.Schema = null; //So that the components are not included again 207include.Schema = Preprocessor.GetBuildInSchema(); 235include.Schema = parser.XmlSchema;
51 references to Schema
System.Data.Common (2)
System\Data\XMLSchema.cs (2)
243if (include.Schema != null) 245CollectElementsAnnotations(include.Schema, schemaList);
System.Private.Xml (49)
System\Xml\Schema\Preprocessor.cs (11)
250if (ext.Schema != null) 252BuildSchemaList(ext.Schema); 271XmlSchema? includedSchema = include.Schema; 354_schemaLocations.Add(ruri, include.Schema); 355LoadExternals(include.Schema); 560XmlSchema? externalSchema = include.Schema; 610XmlSchema? includedSchema = include.Schema; 660XmlSchema? includedSchema = external.Schema; 820XmlSchema originalSchema = redefine.Schema!; 966if (external.Schema != null) 968GetIncludedSet(external.Schema, includesList);
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
100if (include.Schema != null) 102Cleanup(include.Schema);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (30)
74if (include.Schema != null) 76include.Schema.IsPreprocessed = true; 95if (include.Schema != null) 97Cleanup(include.Schema); 143if (include.Schema != null) 158LoadExternals(include.Schema, xsc); 169if (include.Schema != null) 171include.Schema = include.Schema.Clone(); 172if (include.Schema.BaseUri != null && _schemaLocations![include.Schema.BaseUri] == null) 174_schemaLocations.Add(include.Schema.BaseUri, include.Schema.BaseUri); 178for (int j = 0; j < include.Schema.Includes.Count; ++j) 180XmlSchemaExternal subInc = (XmlSchemaExternal)include.Schema.Includes[j]; 183subUri = subImp.BaseUri ?? subImp.Schema?.BaseUri; 236LoadExternals(include.Schema!, xsc); 377else if ((include is XmlSchemaRedefine || include is XmlSchemaInclude) && include.Schema == null) 381if (include.Schema != null) 385Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 397Preprocess(include.Schema, ((XmlSchemaImport)include).Namespace, Compositor.Import); 401Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 482if (include.Schema != null) 498XmlSchema? includedSchema = include.Schema; 604group.Redefined = (XmlSchemaGroup?)redefine.Schema!.Groups[group.QualifiedName]; 625attributeGroup.Redefined = (XmlSchemaAttributeGroup?)redefine.Schema!.AttributeGroups[attributeGroup.QualifiedName]; 646XmlSchemaType? type = (XmlSchemaType?)redefine.Schema!.SchemaTypes[complexType.QualifiedName]; 675XmlSchemaType? type = (XmlSchemaType?)redefine.Schema!.SchemaTypes[simpleType.QualifiedName]; 698redefine.Schema!.Groups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 703redefine.Schema!.AttributeGroups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 708redefine.Schema!.SchemaTypes.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!);
System\Xml\Schema\XmlSchema.cs (2)
538if (ext.Schema != null) 540GetExternalSchemasList(extList, ext.Schema);
System\Xml\Serialization\XmlSchemas.cs (4)
379if (external.Schema != null) 381Merge(external.Schema); 390if (external.Schema == null) 401Merge(originals, external.Schema);