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