11 instantiations of XmlSchema
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaHelper.cs (1)
132XmlSchema schema = new XmlSchema();
System\Runtime\Serialization\SchemaImporter.cs (1)
140XmlSchema xsdSchema = new XmlSchema();
System.Private.Xml (9)
System\Xml\Schema\Inference\Infer.cs (2)
337xs = new XmlSchema(); 484XmlSchema xs = new XmlSchema();
System\Xml\Schema\Parser.cs (1)
83_schema = new XmlSchema();
System\Xml\Schema\ParserAsync.cs (1)
44_schema = new XmlSchema();
System\Xml\Schema\Preprocessor.cs (1)
425XmlSchema tempSchema = new XmlSchema();
System\Xml\Schema\XmlSchema.cs (2)
430XmlSchema that = new XmlSchema(); 449XmlSchema that = new XmlSchema();
System\Xml\Serialization\XmlSchemaExporter.cs (1)
268XmlSchema schema = new XmlSchema();
System\Xml\Serialization\XmlSchemas.cs (1)
736XmlSchema schema = new XmlSchema();
575 references to XmlSchema
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\XmlStrings.cs (1)
13public const string NamespaceUri = System.Xml.Schema.XmlSchema.Namespace;
dotnet-svcutil-lib (1)
Metadata\MetadaExchangeResolver.cs (1)
57return _metadataSet != null && _metadataSet.MetadataSections.Any((section) => section.Metadata is XmlSchema || section.Metadata is WsdlNS.ServiceDescription);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
ProblemDetailsWrapper.cs (1)
43public XmlSchema? GetSchema() => null;
SerializableErrorWrapper.cs (1)
47public XmlSchema? GetSchema()
netstandard (1)
netstandard.cs (1)
2297[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchema))]
PresentationFramework (5)
System\Windows\Annotations\Annotation.cs (1)
168public XmlSchema GetSchema()
System\Windows\Annotations\AnnotationResource.cs (1)
99public XmlSchema GetSchema()
System\Windows\Annotations\LocatorGroup.cs (1)
83public XmlSchema GetSchema()
System\Windows\Annotations\LocatorPartList.cs (1)
139public XmlSchema GetSchema()
System\Windows\Data\XmlDataProvider.cs (1)
388public XmlSchema GetSchema()
System.Data.Common (85)
System\Data\DataSet.cs (6)
1836XmlSchema s = XmlSchema.Read(reader, null)!; 3483protected virtual System.Xml.Schema.XmlSchema? GetSchemaSerializable() => null; 3496any.Namespace = XmlSchema.Namespace; 3517XmlSchema? IXmlSerializable.GetSchema() 3537return XmlSchema.Read(new XmlTextReader(stream), null);
System\Data\DataTable.cs (7)
6419XmlSchema s = XmlSchema.Read(reader, null)!; 6692any.Namespace = XmlSchema.Namespace; 6709XmlSchema? IXmlSerializable.GetSchema() 6723protected virtual XmlSchema? GetSchema() 6734return XmlSchema.Read(new XmlTextReader(stream), null); 6739private XmlSchema? GetXmlSchema()
System\Data\SQLTypes\SQLBinary.cs (4)
412XmlSchema? IXmlSerializable.GetSchema() { return null; } 416string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 450writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 460return new XmlQualifiedName("base64Binary", XmlSchema.Namespace);
System\Data\SQLTypes\SQLBoolean.cs (4)
479XmlSchema? IXmlSerializable.GetSchema() { return null; } 483string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 500writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 510return new XmlQualifiedName("boolean", XmlSchema.Namespace);
System\Data\SQLTypes\SQLByte.cs (4)
488XmlSchema? IXmlSerializable.GetSchema() { return null; } 492string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 510writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 520return new XmlQualifiedName("unsignedByte", XmlSchema.Namespace);
System\Data\SQLTypes\SQLBytes.cs (4)
519XmlSchema? IXmlSerializable.GetSchema() 528string? isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); 560writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 571return new XmlQualifiedName("base64Binary", XmlSchema.Namespace);
System\Data\SQLTypes\SQLChars.cs (4)
485XmlSchema? IXmlSerializable.GetSchema() 494string? isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); 513writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 524return new XmlQualifiedName("string", XmlSchema.Namespace);
System\Data\SQLTypes\SQLDateTime.cs (4)
630XmlSchema? IXmlSerializable.GetSchema() { return null; } 634string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 664writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 674return new XmlQualifiedName("dateTime", XmlSchema.Namespace);
System\Data\SQLTypes\SQLDecimal.cs (4)
3347XmlSchema? IXmlSerializable.GetSchema() { return null; } 3351string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 3376writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 3386return new XmlQualifiedName("decimal", XmlSchema.Namespace);
System\Data\SQLTypes\SQLDouble.cs (4)
404XmlSchema? IXmlSerializable.GetSchema() { return null; } 408string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 426writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 436return new XmlQualifiedName("double", XmlSchema.Namespace);
System\Data\SQLTypes\SQLGuid.cs (4)
293XmlSchema? IXmlSerializable.GetSchema() { return null; } 297string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 314writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 324return new XmlQualifiedName("string", XmlSchema.Namespace);
System\Data\SQLTypes\SQLInt16.cs (4)
489XmlSchema? IXmlSerializable.GetSchema() { return null; } 493string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 511writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 521return new XmlQualifiedName("short", XmlSchema.Namespace);
System\Data\SQLTypes\SQLInt32.cs (4)
504XmlSchema? IXmlSerializable.GetSchema() { return null; } 508string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 526writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 536return new XmlQualifiedName("int", XmlSchema.Namespace);
System\Data\SQLTypes\SQLInt64.cs (4)
563XmlSchema? IXmlSerializable.GetSchema() { return null; } 567string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 585writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 595return new XmlQualifiedName("long", XmlSchema.Namespace);
System\Data\SQLTypes\SQLMoney.cs (4)
560XmlSchema? IXmlSerializable.GetSchema() { return null; } 564string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 583writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 593return new XmlQualifiedName("decimal", XmlSchema.Namespace);
System\Data\SQLTypes\SQLSingle.cs (4)
414XmlSchema? IXmlSerializable.GetSchema() { return null; } 418string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 436writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 446return new XmlQualifiedName("float", XmlSchema.Namespace);
System\Data\SQLTypes\SQLString.cs (4)
920XmlSchema? IXmlSerializable.GetSchema() { return null; } 924string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); 942writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 952return new XmlQualifiedName("string", XmlSchema.Namespace);
System\Data\SQLTypes\SqlXml.cs (4)
203XmlSchema? IXmlSerializable.GetSchema() 210string? isNull = r.GetAttribute("nil", XmlSchema.InstanceNamespace); 237writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); 257return new XmlQualifiedName("anyType", XmlSchema.Namespace);
System\Data\XMLSchema.cs (8)
168private void CollectElementsAnnotations(XmlSchema schema) 175private void CollectElementsAnnotations(XmlSchema schema, ArrayList schemaList) 667foreach (XmlSchema schemaRoot in schemaSet.Schemas()) 707foreach (XmlSchema schemaRoot in schemaSet.Schemas()) 852foreach (XmlSchema schemaRoot in schemaSet.Schemas()) 2517if (((XmlSchema)e).ElementFormDefault == XmlSchemaForm.Unqualified) 2744foreach (XmlSchema schemaRoot in _schemaSet!.Schemas()) 2760foreach (XmlSchema schemaRoot in _schemaSet!.Schemas())
System.Private.DataContractSerialization (57)
System\Runtime\Serialization\SchemaExporter.cs (26)
69XmlSchema? schema = XmlSchema.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null); 86XmlSchema schema = GetSchema(dataContract.XmlName.Namespace); 104private XmlSchemaElement ExportTopLevelElement(DataContract dataContract, XmlSchema? schema) 119private void ExportClassDataContract(ClassDataContract classDataContract, XmlSchema schema) 176private static void AddReferenceAttributes(XmlSchemaObjectCollection attributes, XmlSchema schema) 184private static void SetElementType(XmlSchemaElement element, DataContract dataContract, XmlSchema schema) 361private void ExportCollectionDataContract(CollectionDataContract collectionDataContract, XmlSchema schema) 423private void ExportEnumDataContract(EnumDataContract enumDataContract, XmlSchema schema) 464private void ExportISerializableDataContract(ClassDataContract dataContract, XmlSchema schema) 491private static XmlSchemaComplexContentExtension CreateTypeContent(XmlSchemaComplexType type, XmlQualifiedName baseTypeName, XmlSchema schema) 523XmlSchema? schema; 535if (anonymousType == null && xsdType == null && typeQName.Namespace != XmlSchema.Namespace) 555XmlSchema[] schemaArray = new XmlSchema[schemas.Count]; 559XmlSchema schema = schemaArray[i]; 668foreach (XmlSchema schema in schemas.Schemas()) 699XmlSchema? schema = ixmlSerializable.GetSchema(); 716XmlSchema schema = SchemaHelper.GetSchema(ns, schemas); 779schemaRefElement.RefName = new XmlQualifiedName(Globals.SchemaLocalName, XmlSchema.Namespace); 783XmlSchema schema = SchemaHelper.GetSchema(ns, schemas); 788private static void AddDefaultTypedDatasetType(XmlSchemaSet schemas, XmlSchema datasetSchema, string localName, string ns) 797XmlSchema schema = SchemaHelper.GetSchema(ns, schemas); 803private XmlSchemaAnnotation GetSchemaAnnotation(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema) 834private XmlElement GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema) 842private XmlSchema GetSchema(string ns)
System\Runtime\Serialization\SchemaHelper.cs (17)
17internal XmlSchema? _schema; 20internal SchemaObjectInfo(XmlSchemaType? type, XmlSchemaElement? element, XmlSchema? schema, List<XmlSchemaType>? knownTypes) 61internal static XmlSchemaType? GetSchemaType(XmlSchemaSet schemas, XmlQualifiedName typeQName, out XmlSchema? outSchema) 66foreach (XmlSchema schema in currentSchemas) 93internal static XmlSchemaElement? GetSchemaElement(XmlSchemaSet schemas, XmlQualifiedName elementQName, out XmlSchema? outSchema) 98foreach (XmlSchema schema in currentSchemas) 115internal static XmlSchema GetSchema(string ns, XmlSchemaSet schemas) 120foreach (XmlSchema schema in currentSchemas) 130private static XmlSchema CreateSchema(string ns, XmlSchemaSet schemas) 132XmlSchema schema = new XmlSchema(); 146internal static void AddElementForm(XmlSchemaElement element, XmlSchema schema) 154internal static void AddSchemaImport(string ns, XmlSchema schema) 174internal static XmlSchema? GetSchemaWithType(SchemaObjectDictionary schemaInfo, XmlSchemaSet schemas, XmlQualifiedName typeName) 184foreach (XmlSchema schema in currentSchemas) 194internal static XmlSchema? GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas) 197foreach (XmlSchema schema in currentSchemas) 214foreach (XmlSchema schema in currentSchemas)
System\Runtime\Serialization\SchemaImporter.cs (14)
53XmlSchema? schema = XmlSchema.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null); 77XmlSchema schema = (XmlSchema)schemaObj; 114XmlSchema? schema = SchemaHelper.GetSchemaWithGlobalElementDeclaration(element, _schemaSet); 135if (schemaSet.Contains(XmlSchema.Namespace)) 140XmlSchema xsdSchema = new XmlSchema(); 141xsdSchema.TargetNamespace = XmlSchema.Namespace; 248foreach (XmlSchema schema in schemaList) 335if (schemaObj is XmlSchema schema) 602XmlSchema serializationSchema = XmlSchema.Read(XmlReader.Create(new StringReader(Globals.SerializationSchema)), null)!; // Source is our constant. Schema is valid. 963XmlSchema? schema = SchemaHelper.GetSchemaWithType(SchemaObjects, _schemaSet, typeName); 1068XmlSchema? schema = SchemaHelper.GetSchemaWithType(SchemaObjects, _schemaSet, typeName);
System.Private.Xml (413)
System\Xml\Core\XsdValidatingReader.cs (1)
2346XmlSchema schema = _inlineSchemaParser.XmlSchema!;
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
669XmlSchema schema = _inlineSchemaParser.XmlSchema!;
System\Xml\Schema\BaseProcessor.cs (2)
75XmlSchema schemaForXmlNS = Preprocessor.GetBuildInSchema(); 98XmlSchema schemaForXmlNS = Preprocessor.GetBuildInSchema();
System\Xml\Schema\Chameleonkey.cs (2)
21internal XmlSchema? originalSchema; 30public ChameleonKey(string ns, XmlSchema originalSchema)
System\Xml\Schema\Inference\Infer.cs (41)
18internal static readonly XmlQualifiedName ST_boolean = new XmlQualifiedName("boolean", XmlSchema.Namespace); 19internal static readonly XmlQualifiedName ST_byte = new XmlQualifiedName("byte", XmlSchema.Namespace); 20internal static readonly XmlQualifiedName ST_unsignedByte = new XmlQualifiedName("unsignedByte", XmlSchema.Namespace); 21internal static readonly XmlQualifiedName ST_short = new XmlQualifiedName("short", XmlSchema.Namespace); 22internal static readonly XmlQualifiedName ST_unsignedShort = new XmlQualifiedName("unsignedShort", XmlSchema.Namespace); 23internal static readonly XmlQualifiedName ST_int = new XmlQualifiedName("int", XmlSchema.Namespace); 24internal static readonly XmlQualifiedName ST_unsignedInt = new XmlQualifiedName("unsignedInt", XmlSchema.Namespace); 25internal static readonly XmlQualifiedName ST_long = new XmlQualifiedName("long", XmlSchema.Namespace); 26internal static readonly XmlQualifiedName ST_unsignedLong = new XmlQualifiedName("unsignedLong", XmlSchema.Namespace); 27internal static readonly XmlQualifiedName ST_integer = new XmlQualifiedName("integer", XmlSchema.Namespace); 28internal static readonly XmlQualifiedName ST_decimal = new XmlQualifiedName("decimal", XmlSchema.Namespace); 29internal static readonly XmlQualifiedName ST_float = new XmlQualifiedName("float", XmlSchema.Namespace); 30internal static readonly XmlQualifiedName ST_double = new XmlQualifiedName("double", XmlSchema.Namespace); 31internal static readonly XmlQualifiedName ST_duration = new XmlQualifiedName("duration", XmlSchema.Namespace); 32internal static readonly XmlQualifiedName ST_dateTime = new XmlQualifiedName("dateTime", XmlSchema.Namespace); 33internal static readonly XmlQualifiedName ST_time = new XmlQualifiedName("time", XmlSchema.Namespace); 34internal static readonly XmlQualifiedName ST_date = new XmlQualifiedName("date", XmlSchema.Namespace); 35internal static readonly XmlQualifiedName ST_gYearMonth = new XmlQualifiedName("gYearMonth", XmlSchema.Namespace); 36internal static readonly XmlQualifiedName ST_string = new XmlQualifiedName("string", XmlSchema.Namespace); 37internal static readonly XmlQualifiedName ST_anySimpleType = new XmlQualifiedName("anySimpleType", XmlSchema.Namespace); 104private XmlSchema? _rootSchema; //(XmlSchema) xsc[TargetNamespace]; 161_namespaceManager.AddNamespace("xs", XmlSchema.Namespace); 193if (_xtr.NamespaceURI == XmlSchema.Namespace) 202_rootSchema = elem.Parent as XmlSchema; 265private XmlSchemaAttribute AddAttribute(string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes) 267if (childURI == XmlSchema.Namespace) 275XmlSchema? xs = null; 352xs = col[0] as XmlSchema; 481private XmlSchema CreateXmlSchema(string targetNS) 484XmlSchema xs = new XmlSchema(); 492private XmlSchemaElement AddElement(string localName, string prefix, string? childURI, XmlSchema? parentSchema, XmlSchemaObjectCollection? addLocation, int positionWithinCollection) 494if (childURI == XmlSchema.Namespace) 501XmlSchema? xs; 527xs = col[0] as XmlSchema; 632internal void InferElement(XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema) 1029internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, ref int lastUsedSeqItem, XmlSchema? parentSchema, bool setMaxoccurs) 1031if (xtr.NamespaceURI == XmlSchema.Namespace) 1197internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType? effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema) 1205if (_xtr.NamespaceURI == XmlSchema.Namespace) 1328internal XmlSchemaElement? FindGlobalElement(string? namespaceURI, string localName, out XmlSchema? parentSchema) 1333foreach (XmlSchema? schema in col)
System\Xml\Schema\Parser.cs (2)
27private XmlSchema? _schema; 148public XmlSchema? XmlSchema
System\Xml\Schema\Preprocessor.cs (46)
25internal XmlSchema schemaToUpdate; 27public RedefineEntry(XmlSchemaRedefine external, XmlSchema schema) 40private XmlSchema? _rootSchema; 41private XmlSchema? _currentSchema; 60private XmlSchema? _rootSchemaForRedefine; 63private static XmlSchema? s_builtInSchemaForXmlNS; 87public bool Execute(XmlSchema schema, string? targetNamespace, bool loadExternals) 127XmlSchema listSchema; 133listSchema = (XmlSchema)_lockList.GetByIndex(schemaIndex)!; 157listSchema = (XmlSchema)_lockList.GetByIndex(schemaIndex)!; 173private static void Cleanup(XmlSchema schema) 232internal XmlSchema? RootSchema 240private void BuildSchemaList(XmlSchema schema) 259private void LoadExternals(XmlSchema schema) 271XmlSchema? includedSchema = include.Schema; 351if (typeof(XmlSchema).IsAssignableFrom(returnType)) 353include.Schema = (XmlSchema)obj; 415include.Schema = (XmlSchema)_schemaLocations[ruri]!; // Set schema object even for duplicates 421internal static XmlSchema GetBuildInSchema() 425XmlSchema tempSchema = new XmlSchema(); 470Interlocked.CompareExchange<XmlSchema?>(ref s_builtInSchemaForXmlNS, tempSchema, null); 475private void BuildRefNamespaces(XmlSchema schema) 517private void Preprocess(XmlSchema schema, string? targetNamespace, ArrayList imports) 519XmlSchema? prevRootSchemaForRedefine; 560XmlSchema? externalSchema = include.Schema; 610XmlSchema? includedSchema = include.Schema; 660XmlSchema? includedSchema = external.Schema; 784private void CopyIncludedComponents(XmlSchema includedSchema, XmlSchema schema) 820XmlSchema originalSchema = redefine.Schema!; 833XmlSchema schemaToUpdate = redefineEntry.schemaToUpdate; 855XmlSchema? parentSchema = GetParentSchema(originalGroup); 880XmlSchema? parentSchema = GetParentSchema(originalAttrGroup); 905XmlSchema? parentSchema = GetParentSchema(originalType); 934XmlSchema? parentSchema = GetParentSchema(originalType); 954private static void GetIncludedSet(XmlSchema schema, ArrayList includesList) 974internal static XmlSchema? GetParentSchema(XmlSchemaObject? currentSchemaObject) 976XmlSchema? parentSchema = null; 977Debug.Assert((currentSchemaObject as XmlSchema) == null); // The current object should not be schema 981parentSchema = currentSchemaObject as XmlSchema; 987private void SetSchemaDefaults(XmlSchema schema) 2122private Uri? ResolveSchemaLocationUri(XmlSchema enclosingSchema, string location) 2137private XmlSchema GetChameleonSchema(string targetNamespace, XmlSchema schema) 2140XmlSchema? chameleonSchema = (XmlSchema?)_chameleonSchemas![cKey]; // Need not clone if a schema for that namespace already exists
System\Xml\Schema\SchemaCollectionCompiler.cs (3)
18private XmlSchema? _schema; 25public bool Execute(XmlSchema schema, SchemaInfo schemaInfo, bool compileContentModel) 95internal static void Cleanup(XmlSchema schema)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (8)
22private XmlSchema? _schema; 49public bool Execute(XmlSchema schema, string? targetNamespace, bool loadExternals, XmlSchemaCollection? xsc) 83private static void Cleanup(XmlSchema schema) 131private void LoadExternals(XmlSchema schema, XmlSchemaCollection? xsc) 261private void BuildRefNamespaces(XmlSchema schema) 287private void Preprocess(XmlSchema schema, string? targetNamespace, Compositor compositor) 498XmlSchema? includedSchema = include.Schema; 1794private Uri? ResolveSchemaLocationUri(XmlSchema enclosingSchema, string location)
System\Xml\Schema\SchemaSetCompiler.cs (8)
28private readonly XmlSchema? _schemaForSchema; 30public Compiler(XmlNameTable nameTable, ValidationEventHandler? eventHandler, XmlSchema? schemaForSchema, XmlSchemaCompilationSettings? compilationSettings) : base(nameTable, null, eventHandler, compilationSettings) 49internal void Prepare(XmlSchema schema, bool cleanup) 144foreach (XmlSchema? schema in _schemasToCompile.Values) 176XmlSchema currentSchema; 181currentSchema = (XmlSchema)schemas.GetByIndex(schemaIndex)!; 667XmlSchema parentSchema = Preprocessor.GetParentSchema(simpleType)!; 668if (parentSchema.TargetNamespace != XmlSchema.Namespace)
System\Xml\Schema\XmlSchema.cs (12)
15[XmlRoot("schema", Namespace = XmlSchema.Namespace)] 59public static XmlSchema? Read(TextReader reader, ValidationEventHandler? validationEventHandler) 65public static XmlSchema? Read(Stream stream, ValidationEventHandler? validationEventHandler) 71public static XmlSchema? Read(XmlReader reader, ValidationEventHandler? validationEventHandler) 138[DynamicDependency(TrimmerConstants.PublicMembers, typeof(XmlSchema))] 147XmlSerializer serializer = new XmlSerializer(typeof(XmlSchema)); 182ns.Add("xs", XmlSchema.Namespace); 428internal new XmlSchema Clone() 430XmlSchema that = new XmlSchema(); 447internal XmlSchema DeepClone() 449XmlSchema that = new XmlSchema(); 527internal static void GetExternalSchemasList(IList extList, XmlSchema schema)
System\Xml\Schema\XmlSchemaCollection.cs (19)
96public XmlSchema? Add(string? ns, [StringSyntax(StringSyntaxAttribute.Uri)] string uri) 103XmlSchema? schema = null; 116public XmlSchema? Add(string? ns, XmlReader reader) 126public XmlSchema? Add(string? ns, XmlReader reader, XmlResolver? resolver) 157public XmlSchema? Add(XmlSchema schema) 162public XmlSchema? Add(XmlSchema schema, XmlResolver? resolver) 193public XmlSchema? this[string? ns] 202public bool Contains(XmlSchema schema) 239public void CopyTo(XmlSchema[] array, int index) 246XmlSchema? schema = e.Current; 288internal XmlSchema? Add(string? ns, SchemaInfo schemaInfo, XmlSchema? schema, bool compile) 293private XmlSchema? Add(string? ns, SchemaInfo schemaInfo, XmlSchema? schema, bool compile, XmlResolver? resolver) 379private XmlSchema? _schema; 393internal XmlSchema? Schema 429public XmlSchema? Current
System\Xml\Schema\XmlSchemaComplexType.cs (5)
322internal XmlSchemaObject Clone(XmlSchema? parentSchema) 443private static XmlSchemaObjectCollection CloneGroupBaseParticles(XmlSchemaObjectCollection groupBaseParticles, XmlSchema? parentSchema) 456internal static XmlSchemaParticle? CloneParticle(XmlSchemaParticle? particle, XmlSchema? parentSchema) 498private static XmlSchemaForm GetResolvedElementForm(XmlSchema? parentSchema, XmlSchemaElement element) 510internal static bool HasParticleRef(XmlSchemaParticle? particle, XmlSchema? parentSchema)
System\Xml\Schema\XmlSchemaElement.cs (1)
277internal XmlSchemaObject Clone(XmlSchema? parentSchema)
System\Xml\Schema\XmlSchemaExternal.cs (2)
14private XmlSchema? _schema; 27public XmlSchema? Schema
System\Xml\Schema\XmlSchemaGroup.cs (1)
78internal XmlSchemaObject Clone(XmlSchema parentSchema)
System\Xml\Schema\XmlSchemaSet.cs (67)
47private XmlSchema? _schemaForSchema; //Only one schema for schema per set 219public XmlSchema? Add(string? targetNamespace, string schemaUri) 231XmlSchema? schema = null; 265public XmlSchema? Add(string? targetNamespace, XmlReader schemaDocument) 275XmlSchema? schema = null; 330XmlSchema? currentSchema; 339foreach (XmlSchema? schema in schemas.SortedSchemas.Values) 356foreach (XmlSchema? schema in schemas.SortedSchemas.Values) 377public XmlSchema? Add(XmlSchema schema) 392public XmlSchema? Remove(XmlSchema schema) 397public bool RemoveRecursive(XmlSchema schemaToRemove) 428XmlSchema mainSchema = (XmlSchema)_schemas.GetByIndex(i)!; 439XmlSchema mainSchema = (XmlSchema)needToCheckSchemaList[i]!; 457XmlSchema impSchema = (XmlSchema)schemaToRemove.ImportedSchemas[i]!; 473public bool Contains(XmlSchema schema) 509XmlSchema currentSchema; 510XmlSchema xmlNSSchema = Preprocessor.GetBuildInSchema(); 513currentSchema = (XmlSchema)_schemas.GetByIndex(schemaIndex)!; 552XmlSchema currentSchema; 559currentSchema = (XmlSchema)_schemas.GetByIndex(i)!; 575public XmlSchema Reprocess(XmlSchema schema) 588XmlSchema originalSchema = schema; 640XmlSchema s = (XmlSchema)schema.ImportedSchemas[i]!; 664public void CopyTo(XmlSchema[] schemas, int index) 682XmlSchema currentSchema; 686currentSchema = (XmlSchema)_schemas.GetByIndex(i)!; 697private XmlSchema? Add(string? targetNamespace, XmlSchema? schema) 811XmlSchema? schema; 831XmlSchema impSchema = (XmlSchema)schema.ImportedSchemas[i]!; 843internal XmlSchema? FindSchemaByNSAndUrl(Uri? schemaUri, string ns, DictionaryEntry[]? locationsTable) 850XmlSchema? schema = null; 853schema = (XmlSchema)_schemaLocations[schemaUri]!; 861schema = (XmlSchema)locationsTable[i].Value!; 882schema = (XmlSchema)_chameleonSchemas[cKey]!; //Need not clone if a schema for that namespace already exists 909private void AddSchemaToSet(XmlSchema schema) 933XmlSchema s = (XmlSchema)schema.ImportedSchemas[i]!; 1019internal XmlSchema? Remove(XmlSchema schema, bool forceCompile) 1072internal bool PreprocessSchema(ref XmlSchema schema, string? targetNamespace) 1084internal XmlSchema? ParseSchema(string? targetNamespace, XmlReader reader) 1104XmlSchema currentSchema; 1113currentSchema = (XmlSchema)copyFromList.GetByIndex(i)!; 1167foreach (XmlSchema? schemaToRemove in copyFromList.Values) 1177if (!existingSchemas.Contains((XmlSchema?)elementToRemove!.Parent)) 1185if (!existingSchemas.Contains((XmlSchema?)attributeToRemove!.Parent)) 1193if (!existingSchemas.Contains((XmlSchema?)schemaTypeToRemove!.Parent)) 1238internal bool IsSchemaLoaded(Uri schemaUri, string? targetNamespace, out XmlSchema? schema) 1249XmlSchema? chameleonSchema = FindSchemaByNSAndUrl(schemaUri, targetNamespace, null); 1277internal bool GetSchemaByUri(Uri schemaUri, [NotNullWhen(true)] out XmlSchema? schema) 1285schema = (XmlSchema?)_schemaLocations[schemaUri]; 1294internal static string GetTargetNamespace(XmlSchema schema) 1308private void RemoveSchemaFromCaches(XmlSchema schema) 1311List<XmlSchema> reprocessList = new List<XmlSchema>(); 1312XmlSchema.GetExternalSchemasList(reprocessList, schema); 1345private void RemoveSchemaFromGlobalTables(XmlSchema schema) 1413XmlSchema schemaForXmlNS = Preprocessor.GetBuildInSchema();
System\Xml\Schema\XmlSchemaValidator.cs (3)
319public void AddSchema(XmlSchema schema) 351XmlSchema impSchema = (XmlSchema)schema.ImportedSchemas[i]!;
System\Xml\Schema\XsdBuilder.cs (2)
636private readonly XmlSchema _schema; 680XmlSchema schema,
System\Xml\Schema\XsdValidator.cs (1)
144XmlSchema? schema = _inlineSchemaParser.XmlSchema;
System\Xml\Serialization\ImportContext.cs (6)
209foreach (XmlSchema s in schemas) 230if (o.Parent is XmlSchema parent) 233if (ns == XmlSchema.Namespace) 243if (item.Parent is XmlSchema) 344if (baseType == null && !baseName.IsEmpty && baseName.Namespace != XmlSchema.Namespace) 368if (el.SubstitutionGroup.Namespace != XmlSchema.Namespace)
System\Xml\Serialization\IXmlSerializable.cs (1)
17XmlSchema? GetSchema();
System\Xml\Serialization\Mappings.cs (7)
1038private XmlSchema? _schema; 1113foreach (XmlSchema s in _schemas.Schemas()) 1171internal XmlSchema? Schema 1217if (element.Parent == null || !(element.Parent is XmlSchema)) 1317if (_xsiType.Namespace != XmlSchema.Namespace) 1329XmlSchema? s = (XmlSchema?)srcSchemas[0];
System\Xml\Serialization\SchemaImporter.cs (3)
32if (!schemas.Contains(XmlSchema.Namespace)) 118mapping.Namespace = XmlSchema.Namespace; 144if (name.Namespace == XmlSchema.Namespace)
System\Xml\Serialization\SchemaObjectWriter.cs (4)
141while (o != null && !(o is XmlSchema)) 145return o == null ? "" : ((XmlSchema)o).TargetNamespace; 305if (o.Parent != null && !(o.Parent is XmlSchema)) 983if (o.Parent != null && !(o.Parent is XmlSchema))
System\Xml\Serialization\SoapReflectionImporter.cs (8)
171TypeDesc? td = TypeScope.GetTypeDesc(dataType!, XmlSchema.Namespace); 174throw new InvalidOperationException(SR.Format(SR.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString())); 207TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 233mapping.Namespace = XmlSchema.Namespace; 477itemTypeNamespace = itemTypeMapping.TypeDesc!.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace; 485itemTypeNamespace = XmlSchema.Namespace; 534mapping.TypeDesc = TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 550mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
System\Xml\Serialization\Types.cs (32)
529AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string", XmlSchema.Namespace), new XmlSchemaFacet[] { guidPattern }, TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.IgnoreDefault); 530AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.IgnoreDefault); 531AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 532AddNonXsdPrimitive(typeof(DateTimeOffset), "dateTimeOffset", UrtTypes.Namespace, "DateTimeOffset", new XmlQualifiedName("dateTime", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 590AddSoapEncodedPrimitive(typeof(string), "normalizedString", ns, "String", new XmlQualifiedName("normalizedString", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.Reference | TypeFlags.HasDefaultConstructor); 593AddSoapEncodedPrimitive(typeof(string), s_unsupportedTypes[i], ns, "String", new XmlQualifiedName(s_unsupportedTypes[i], XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.Reference | TypeFlags.CollapseWhitespace); 596AddSoapEncodedPrimitive(typeof(string), "string", ns, "String", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue | TypeFlags.Reference); 597AddSoapEncodedPrimitive(typeof(int), "int", ns, "Int32", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 598AddSoapEncodedPrimitive(typeof(bool), "boolean", ns, "Boolean", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 599AddSoapEncodedPrimitive(typeof(short), "short", ns, "Int16", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 600AddSoapEncodedPrimitive(typeof(long), "long", ns, "Int64", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 601AddSoapEncodedPrimitive(typeof(float), "float", ns, "Single", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 602AddSoapEncodedPrimitive(typeof(double), "double", ns, "Double", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 603AddSoapEncodedPrimitive(typeof(decimal), "decimal", ns, "Decimal", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 604AddSoapEncodedPrimitive(typeof(DateTime), "dateTime", ns, "DateTime", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired); 605AddSoapEncodedPrimitive(typeof(XmlQualifiedName), "QName", ns, "XmlQualifiedName", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.HasCustomFormatter | TypeFlags.HasIsEmpty | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.Reference); 606AddSoapEncodedPrimitive(typeof(byte), "unsignedByte", ns, "Byte", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 607AddSoapEncodedPrimitive(typeof(sbyte), "byte", ns, "SByte", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 608AddSoapEncodedPrimitive(typeof(ushort), "unsignedShort", ns, "UInt16", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 609AddSoapEncodedPrimitive(typeof(uint), "unsignedInt", ns, "UInt32", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 610AddSoapEncodedPrimitive(typeof(ulong), "unsignedLong", ns, "UInt64", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 613AddSoapEncodedPrimitive(typeof(DateTime), "date", ns, "Date", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired); 614AddSoapEncodedPrimitive(typeof(DateTime), "time", ns, "Time", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired); 616AddSoapEncodedPrimitive(typeof(string), "Name", ns, "XmlName", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference); 617AddSoapEncodedPrimitive(typeof(string), "NCName", ns, "XmlNCName", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference); 618AddSoapEncodedPrimitive(typeof(string), "NMTOKEN", ns, "XmlNmToken", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference); 619AddSoapEncodedPrimitive(typeof(string), "NMTOKENS", ns, "XmlNmTokens", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference); 621AddSoapEncodedPrimitive(typeof(byte[]), "base64Binary", ns, "ByteArrayBase64", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference | TypeFlags.IgnoreDefault | TypeFlags.XmlEncodingNotRequired); 622AddSoapEncodedPrimitive(typeof(byte[]), "hexBinary", ns, "ByteArrayHex", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference | TypeFlags.IgnoreDefault | TypeFlags.XmlEncodingNotRequired); 624AddSoapEncodedPrimitive(typeof(string), "arrayCoordinate", ns, "String", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue); 625AddSoapEncodedPrimitive(typeof(byte[]), "base64", ns, "ByteArrayBase64", new XmlQualifiedName("base64Binary", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.IgnoreDefault | TypeFlags.Reference); 636s_primitiveNames.Add(dataTypeName, XmlSchema.Namespace, typeDesc);
System\Xml\Serialization\XmlReflectionImporter.cs (10)
409TypeDesc? td = TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 412throw new InvalidOperationException(SR.Format(SR.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString())); 447TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 588if (baseQname.Namespace == XmlSchema.Namespace) return; 600XmlSchema s = (XmlSchema)srcSchemas[0]!; 640mapping.Namespace = XmlSchema.Namespace; 1054ns = itemTypeMapping.Namespace == XmlSchema.Namespace ? defaultNs : itemTypeMapping.Namespace; 1165mapping.TypeDesc = TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 1181mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
System\Xml\Serialization\XmlSchemaExporter.cs (20)
138XmlSchema? schema = _schemas[ns]; 183XmlSchema? schema = _schemas[ns]; 254XmlSchema? schema = _schemas[newNamespace]; 266private XmlSchema AddSchema(string? targetNamespace) 268XmlSchema schema = new XmlSchema(); 282XmlSchema schema = _schemas[ns] ?? AddSchema(ns); 304XmlSchema schema = _schemas[referencingNs] ?? AddSchema(referencingNs); 324XmlSchema? schema = _schemas[ns]; 332private static XmlSchemaImport? FindImport(XmlSchema schema, string? ns) 455foreach (XmlSchema schema in serializableMapping.Schemas.Schemas()) 457if (schema.TargetNamespace != XmlSchema.Namespace) 474foreach (XmlSchema schema in serializableMapping.Schemas!.Schemas()) 476if (schema.TargetNamespace != XmlSchema.Namespace) 504XmlSchema? existingSchema = _schemas[anyNs]; 525schemaElement.RefName = new XmlQualifiedName("schema", XmlSchema.Namespace); 530AddSchemaImport(XmlSchema.Namespace, ns); 578qname = new XmlQualifiedName(mapping.TypeDesc.DataType!.Name, XmlSchema.Namespace); 736XmlSchema? schema = _schemas[ns]; 837XmlSchema? schema = _schemas[ns]; 1156restriction.BaseTypeName = new XmlQualifiedName("string", XmlSchema.Namespace);
System\Xml\Serialization\XmlSchemaImporter.cs (20)
44mapping.TypeDesc = TypeScope.GetTypeDesc("string", XmlSchema.Namespace, flags); 46mapping.Namespace = XmlSchema.Namespace; 175XmlSchema? schema = xso.Parent as XmlSchema; 294accessor.IsTopLevelInSchema = element.Parent is XmlSchema; 395foreach (XmlSchema schema in Schemas) 417if (name.Name == Soap.UrType && name.Namespace == XmlSchema.Namespace) 436if (addref && name.Namespace != XmlSchema.Namespace) 1071foreach (XmlSchema schema in Schemas.SchemaSet.Schemas()) 1689if (restriction.BaseTypeName.Namespace != XmlSchema.Namespace) 1833mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace; 1849mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : ns; 1889return new XmlQualifiedName("string", XmlSchema.Namespace); 1904if (qname.Namespace != XmlSchema.Namespace) 1928if (name.Namespace == XmlSchema.Namespace) 1930return (XmlSchemaSimpleType?)TypeScope.GetTypeDesc("string", XmlSchema.Namespace, flags)!.DataType; 1988XmlSchema? schema = parent as XmlSchema; 2016XmlSchema? schema = parent as XmlSchema;
System\Xml\Serialization\XmlSchemas.cs (57)
21public class XmlSchemas : CollectionBase, IEnumerable<XmlSchema> 30private static volatile XmlSchema? s_xsd; 31private static volatile XmlSchema? s_xml; 33public XmlSchema this[int index] 35get { return (XmlSchema)List[index]!; } 39public XmlSchema? this[string? ns] 47return (XmlSchema?)values[0]; 77internal int Add(XmlSchema schema, bool delay) 91public int Add(XmlSchema schema) 98public int Add(XmlSchema schema, Uri? baseUri) 109foreach (XmlSchema schema in schemas) 115public void AddReference(XmlSchema schema) 120public void Insert(int index, XmlSchema schema) 125public int IndexOf(XmlSchema schema) 130public bool Contains(XmlSchema schema) 140public void Remove(XmlSchema schema) 145public void CopyTo(XmlSchema[] array, int index) 152AddName((XmlSchema)value!); 157RemoveName((XmlSchema)value!); 167RemoveName((XmlSchema)oldValue!); 168AddName((XmlSchema)newValue!); 171private void AddName(XmlSchema schema) 183private static void Prepare(XmlSchema schema) 204private void RemoveName(XmlSchema schema) 217foreach (XmlSchema schema in List) 225foreach (XmlSchema schema in values) 276IEnumerator<XmlSchema> IEnumerable<XmlSchema>.GetEnumerator() 281internal static void Preprocess(XmlSchema schema) 299public static bool IsDataSet(XmlSchema schema) 323private void Merge(XmlSchema schema) 342foreach (XmlSchema s in schemas) 364private void Merge(IList originals, XmlSchema schema) 366foreach (XmlSchema s in originals) 425XmlSchema destination = (XmlSchema)originals[0]!; 490while (o.Parent != null && !(o.Parent is XmlSchema)) 501if (tmp is XmlSchema) 503ns = ((XmlSchema)tmp).TargetNamespace; 560else if (o is XmlSchema) 583ns.Add("xs", XmlSchema.Namespace); 605foreach (XmlSchema s in originals) 630foreach (XmlSchema s in delayedSchemas.Values) 640foreach (XmlSchema s in References.Values) 644foreach (XmlSchema s in List) 653if (!SchemaSet.Contains(XmlSchema.Namespace)) 679foreach (XmlSchema schema in SchemaSet.Schemas()) 707if (source is XmlSchema) 709ns = ((XmlSchema)source).TargetNamespace; 721internal static XmlSchema XsdSchema => 722s_xsd ??= CreateFakeXsdSchema(XmlSchema.Namespace, "schema"); 724internal static XmlSchema XmlSchema => 725s_xml ??= XmlSchema.Read(new StringReader(xmlSchema), null)!; 727private static XmlSchema CreateFakeXsdSchema(string ns, string name) 736XmlSchema schema = new XmlSchema(); 789public class XmlSchemaEnumerator : IEnumerator<XmlSchema>, System.Collections.IEnumerator 815public XmlSchema Current
System\Xml\Serialization\XmlSerializationReader.cs (6)
121_schemaNsID = r.NameTable.Add(XmlSchema.Namespace); 125_instanceNsID = r.NameTable.Add(XmlSchema.InstanceNamespace); 191_r.NameTable.Add(XmlSchema.Namespace); 1695typens = XmlSchema.Namespace; 1849XmlQualifiedName urType = new XmlQualifiedName(_urTypeID, _r.NameTable.Add(XmlSchema.Namespace)); 3264Writer.WriteLine($"return ReadTypedPrimitive(new System.Xml.XmlQualifiedName(\"{Soap.UrType}\", \"{XmlSchema.Namespace}\"));");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1447ilg.Ldstr(XmlSchema.Namespace);
System\Xml\Serialization\XmlSerializationWriter.cs (9)
184WriteAttribute("type", XmlSchema.InstanceNamespace, GetQualifiedName(name, ns)); 205string typeNs = XmlSchema.Namespace; 261string typeNs = XmlSchema.Namespace; 374_w.WriteStartElement(Soap.UrType, XmlSchema.Namespace); 424_w.WriteAttributeString("nil", XmlSchema.InstanceNamespace, "true"); 614_w.WriteAttributeString("nil", XmlSchema.InstanceNamespace, "true"); 628_w.WriteAttributeString("nil", XmlSchema.InstanceNamespace, "true"); 1205typeNs = XmlSchema.Namespace; 1240typeNs = XmlSchema.Namespace;
System\Xml\Serialization\XmlSerializer.cs (2)
152nss.AddInternal("xsi", XmlSchema.InstanceNamespace); 153nss.AddInternal("xsd", XmlSchema.Namespace);
System.Private.Xml.Linq (1)
System\Xml\Linq\XElement.cs (1)
1866XmlSchema? IXmlSerializable.GetSchema()
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1765getSchemaMethod.ReturnType = GetCodeTypeReference(typeof(XmlSchema));
System.ServiceModel.Syndication (6)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
84XmlSchema IXmlSerializable.GetSchema() => null;
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (1)
76XmlSchema IXmlSerializable.GetSchema() => null;
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
73XmlSchema IXmlSerializable.GetSchema() => null;
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
59XmlSchema IXmlSerializable.GetSchema() => null;
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
84XmlSchema IXmlSerializable.GetSchema() => null;
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (1)
99XmlSchema IXmlSerializable.GetSchema() => null;
System.Xml (1)
System.Xml.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchema))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
21[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchema))]