139 references to Namespace
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\XmlStrings.cs (1)
13
public const string NamespaceUri = System.Xml.Schema.XmlSchema.
Namespace
;
System.Data.Common (18)
System\Data\DataSet.cs (1)
3496
any.Namespace = XmlSchema.
Namespace
;
System\Data\DataTable.cs (1)
6692
any.Namespace = XmlSchema.
Namespace
;
System\Data\SQLTypes\SQLBinary.cs (1)
460
return new XmlQualifiedName("base64Binary", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLBoolean.cs (1)
510
return new XmlQualifiedName("boolean", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLByte.cs (1)
520
return new XmlQualifiedName("unsignedByte", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLBytes.cs (1)
571
return new XmlQualifiedName("base64Binary", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLChars.cs (1)
524
return new XmlQualifiedName("string", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLDateTime.cs (1)
674
return new XmlQualifiedName("dateTime", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLDecimal.cs (1)
3386
return new XmlQualifiedName("decimal", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLDouble.cs (1)
436
return new XmlQualifiedName("double", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLGuid.cs (1)
324
return new XmlQualifiedName("string", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLInt16.cs (1)
521
return new XmlQualifiedName("short", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLInt32.cs (1)
536
return new XmlQualifiedName("int", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLInt64.cs (1)
595
return new XmlQualifiedName("long", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLMoney.cs (1)
593
return new XmlQualifiedName("decimal", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLSingle.cs (1)
446
return new XmlQualifiedName("float", XmlSchema.
Namespace
);
System\Data\SQLTypes\SQLString.cs (1)
952
return new XmlQualifiedName("string", XmlSchema.
Namespace
);
System\Data\SQLTypes\SqlXml.cs (1)
257
return new XmlQualifiedName("anyType", XmlSchema.
Namespace
);
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\SchemaExporter.cs (2)
535
if (anonymousType == null && xsdType == null && typeQName.Namespace != XmlSchema.
Namespace
)
779
schemaRefElement.RefName = new XmlQualifiedName(Globals.SchemaLocalName, XmlSchema.
Namespace
);
System\Runtime\Serialization\SchemaImporter.cs (2)
135
if (schemaSet.Contains(XmlSchema.
Namespace
))
141
xsdSchema.TargetNamespace = XmlSchema.
Namespace
;
System.Private.Xml (116)
System\Xml\Schema\Inference\Infer.cs (26)
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
);
161
_namespaceManager.AddNamespace("xs", XmlSchema.
Namespace
);
193
if (_xtr.NamespaceURI == XmlSchema.
Namespace
)
267
if (childURI == XmlSchema.
Namespace
)
494
if (childURI == XmlSchema.
Namespace
)
1031
if (xtr.NamespaceURI == XmlSchema.
Namespace
)
1205
if (_xtr.NamespaceURI == XmlSchema.
Namespace
)
System\Xml\Schema\SchemaSetCompiler.cs (1)
668
if (parentSchema.TargetNamespace != XmlSchema.
Namespace
)
System\Xml\Schema\XmlSchema.cs (2)
15
[XmlRoot("schema", Namespace = XmlSchema.
Namespace
)]
182
ns.Add("xs", XmlSchema.
Namespace
);
System\Xml\Serialization\ImportContext.cs (3)
233
if (ns == XmlSchema.
Namespace
)
344
if (baseType == null && !baseName.IsEmpty && baseName.Namespace != XmlSchema.
Namespace
)
368
if (el.SubstitutionGroup.Namespace != XmlSchema.
Namespace
)
System\Xml\Serialization\Mappings.cs (1)
1317
if (_xsiType.Namespace != XmlSchema.
Namespace
)
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\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 (8)
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;
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 (6)
457
if (schema.TargetNamespace != XmlSchema.
Namespace
)
476
if (schema.TargetNamespace != XmlSchema.
Namespace
)
525
schemaElement.RefName = new XmlQualifiedName("schema", XmlSchema.
Namespace
);
530
AddSchemaImport(XmlSchema.
Namespace
, ns);
578
qname = new XmlQualifiedName(mapping.TypeDesc.DataType!.Name, XmlSchema.
Namespace
);
1156
restriction.BaseTypeName = new XmlQualifiedName("string", XmlSchema.
Namespace
);
System\Xml\Serialization\XmlSchemaImporter.cs (11)
44
mapping.TypeDesc = TypeScope.GetTypeDesc("string", XmlSchema.
Namespace
, flags);
46
mapping.Namespace = XmlSchema.
Namespace
;
417
if (name.Name == Soap.UrType && name.Namespace == XmlSchema.
Namespace
)
436
if (addref && name.Namespace != XmlSchema.
Namespace
)
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;
System\Xml\Serialization\XmlSchemas.cs (3)
583
ns.Add("xs", XmlSchema.
Namespace
);
653
if (!SchemaSet.Contains(XmlSchema.
Namespace
))
722
s_xsd ??= CreateFakeXsdSchema(XmlSchema.
Namespace
, "schema");
System\Xml\Serialization\XmlSerializationReader.cs (5)
121
_schemaNsID = r.NameTable.Add(XmlSchema.
Namespace
);
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 (5)
205
string typeNs = XmlSchema.
Namespace
;
261
string typeNs = XmlSchema.
Namespace
;
374
_w.WriteStartElement(Soap.UrType, XmlSchema.
Namespace
);
1205
typeNs = XmlSchema.
Namespace
;
1240
typeNs = XmlSchema.
Namespace
;
System\Xml\Serialization\XmlSerializer.cs (1)
153
nss.AddInternal("xsd", XmlSchema.
Namespace
);