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