13 writes to Schema
System.Web.Services (1)
System\Web\Services\Discovery\SchemaReference.cs (1)
117external.Schema = externalRef.GetSchema();
System.Xml (12)
System\Xml\Schema\Inference\Infer.cs (2)
484import.Schema = xs; 589import.Schema = xs;
System\Xml\Schema\Preprocessor.cs (5)
285include.Schema = Preprocessor.GetBuildInSchema(); 313include.Schema = (XmlSchema)obj; 341include.Schema = includedSchema; 361include.Schema = (XmlSchema)schemaLocations[ruri]; //Set schema object even for duplicates 558include.Schema = externalSchema; //Reset the schema property to the cloned schema
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
148include.Schema = xsc[importNS]; //Fetch it from the collection 150include.Schema = include.Schema.Clone(); 163subImp.Schema = null; //So that the components are not included again 179include.Schema = Preprocessor.GetBuildInSchema(); 203include.Schema = parser.XmlSchema;
58 references to Schema
System.Data (2)
fx\src\data\System\Data\XMLSchema.cs (2)
221if (include.Schema != null) { 222CollectElementsAnnotations(include.Schema, schemaList);
System.ServiceModel (2)
System\ServiceModel\Description\MessageContractImporter.cs (2)
877if (include.Schema != null) 879schemaSet.Add(include.Schema);
System.Web.Services (3)
System\Web\Services\Discovery\SchemaReference.cs (3)
111if (external.SchemaLocation == null || external.SchemaLocation.Length == 0 || external.Schema != null) 118if (external.Schema != null) 119loadedExternals[location] = external.Schema;
System.Xml (51)
System\Xml\Schema\Preprocessor.cs (11)
228if (ext.Schema != null) { 229BuildSchemaList(ext.Schema); 247XmlSchema includedSchema = include.Schema; 314schemaLocations.Add(ruri, include.Schema); 315LoadExternals(include.Schema); 494XmlSchema externalSchema = include.Schema; 535XmlSchema includedSchema = include.Schema; 579XmlSchema includedSchema = external.Schema; 716XmlSchema originalSchema = redefine.Schema; 837if (external.Schema != null) { 838GetIncludedSet(external.Schema, includesList);
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
81if (include.Schema != null) { 82Cleanup(include.Schema);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (32)
68if (include.Schema != null) { 69include.Schema.IsPreprocessed = true; 85if (include.Schema != null) { 86Cleanup(include.Schema); 129if (include.Schema != null) { 139LoadExternals(include.Schema, xsc); 149if (include.Schema != null) { 150include.Schema = include.Schema.Clone(); 151if (include.Schema.BaseUri != null && schemaLocations[include.Schema.BaseUri] == null) { 152schemaLocations.Add(include.Schema.BaseUri, include.Schema.BaseUri); 156for (int j = 0; j < include.Schema.Includes.Count; ++j) { 157XmlSchemaExternal subInc = (XmlSchemaExternal)include.Schema.Includes[j]; 160subUri = subImp.BaseUri != null ? subImp.BaseUri : (subImp.Schema != null && subImp.Schema.BaseUri != null ? subImp.Schema.BaseUri : null); 204LoadExternals(include.Schema, xsc); 320else if((include is XmlSchemaRedefine || include is XmlSchemaInclude) && include.Schema == null) { 323if (include.Schema != null) { 325Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 334Preprocess(include.Schema, ((XmlSchemaImport)include).Namespace, Compositor.Import); 337Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 401if (include.Schema != null) { 414XmlSchema includedSchema = include.Schema; 499group.Redefined = (XmlSchemaGroup)redefine.Schema.Groups[group.QualifiedName]; 516attributeGroup.Redefined = (XmlSchemaAttributeGroup)redefine.Schema.AttributeGroups[attributeGroup.QualifiedName]; 533XmlSchemaType type = (XmlSchemaType)redefine.Schema.SchemaTypes[complexType.QualifiedName]; 556XmlSchemaType type = (XmlSchemaType)redefine.Schema.SchemaTypes[simpleType.QualifiedName]; 574redefine.Schema.Groups.Insert((XmlQualifiedName)entry.Key, (XmlSchemaObject)entry.Value); 577redefine.Schema.AttributeGroups.Insert((XmlQualifiedName)entry.Key, (XmlSchemaObject)entry.Value); 580redefine.Schema.SchemaTypes.Insert((XmlQualifiedName)entry.Key, (XmlSchemaObject)entry.Value);
System\Xml\Schema\XmlSchema.cs (2)
631if (ext.Schema != null) { 632GetExternalSchemasList(extList, ext.Schema);
System\Xml\Serialization\XmlSchemas.cs (4)
407if (external.Schema != null) { 408Merge(external.Schema); 415if (external.Schema == null) { 423Merge(originals, external.Schema);