20 writes to TargetNamespace
System.Runtime.Serialization (2)
System\Runtime\Serialization\SchemaHelper.cs (1)
149schema.TargetNamespace = ns;
System\Runtime\Serialization\SchemaImporter.cs (1)
143xsdSchema.TargetNamespace = XmlSchema.Namespace;
System.ServiceModel (4)
System\ServiceModel\Description\MessageContractExporter.cs (1)
326xsd.TargetNamespace = refNs;
System\ServiceModel\Description\SchemaHelper.cs (1)
87schema.TargetNamespace = ns;
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
141schema.TargetNamespace = XPathMessageFilter.Namespace; 348schema.TargetNamespace = XPathMessageFilter.Namespace;
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\SchemaUtility.cs (1)
550schema.TargetNamespace = discoveryVersion.Namespace;
System.Web.Services (3)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
78schema.TargetNamespace = typeNs;
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
6844o.@TargetNamespace = CollapseWhitespace(Reader.Value);
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (1)
155top.TargetNamespace = description.TargetNamespace;
System.Xml (10)
System\Xml\Schema\Inference\Infer.cs (2)
361xs.TargetNamespace = childURI; 504xs.TargetNamespace = targetNS;
System\Xml\Schema\Preprocessor.cs (3)
370tempSchema.TargetNamespace = XmlReservedNs.NsXml; 469schema.TargetNamespace = tns = NameTable.Add(tns); 1756chameleonSchema.TargetNamespace = targetNamespace;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
258schema.TargetNamespace = tns = NameTable.Add(tns);
System\Xml\Schema\XsdBuilder.cs (1)
1090builder.schema.TargetNamespace = value;
System\Xml\Serialization\SoapSchemaExporter.cs (1)
106schema.TargetNamespace = ns == null || ns.Length == 0 ? null : ns;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
262schema.TargetNamespace = string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace;
System\Xml\Serialization\XmlSchemas.cs (1)
711schema.TargetNamespace = ns;
153 references to TargetNamespace
System.Data (2)
fx\src\data\System\Data\XMLSchema.cs (2)
586string ns = schemaRoot.TargetNamespace; 731ds.Namespace = schemaRoot.TargetNamespace;
System.Data.Services.Design (5)
System\Data\EntityModel\EntityClassGenerator.cs (3)
284XmlSchemaComplexType associationType = csdlSchema.SchemaTypes[new XmlQualifiedName("TAssociation", csdlSchema.TargetNamespace)] as XmlSchemaComplexType; 292if (e.QualifiedName == new XmlQualifiedName("ReferentialConstraint", csdlSchema.TargetNamespace)) 315XmlSchemaElement entityContainerElement = csdlSchema.Elements[new XmlQualifiedName("EntityContainer", csdlSchema.TargetNamespace)] as XmlSchemaElement;
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (2)
176result = schema.TargetNamespace; 177Debug.Assert(!String.IsNullOrEmpty(schema.TargetNamespace), "schema.TargetNamespace != null||'' -- otherwise this isn't CSDL");
System.Runtime.Serialization (19)
System\Runtime\Serialization\SchemaExporter.cs (5)
566qname = new XmlQualifiedName(((XmlSchemaElement)item).Name, schema.TargetNamespace); 571qname = new XmlQualifiedName(((XmlSchemaType)item).Name, schema.TargetNamespace); 677typeNs = schema.TargetNamespace; 796any.Namespace = (datasetSchema.TargetNamespace == null) ? String.Empty : datasetSchema.TargetNamespace;
System\Runtime\Serialization\SchemaHelper.cs (7)
48if (NamespacesEqual(ns, schema.TargetNamespace)) 86if (NamespacesEqual(ns, schema.TargetNamespace)) 101if (NamespacesEqual(ns, schema.TargetNamespace)) 134if ((schema.TargetNamespace == null && ns.Length == 0) || ns.Equals(schema.TargetNamespace)) 168if (SchemaHelper.NamespacesEqual(ns, schema.TargetNamespace) || SchemaHelper.NamespacesEqual(ns, Globals.SchemaNamespace) || SchemaHelper.NamespacesEqual(ns, Globals.SchemaInstanceNamespace)) 224return new XmlQualifiedName(schemaElement.Name, schema.TargetNamespace);
System\Runtime\Serialization\SchemaImporter.cs (7)
83if (schema.TargetNamespace != Globals.SerializationNamespace 84&& schema.TargetNamespace != Globals.SchemaNamespace) 93ImportAnonymousGlobalElement(element, element.QualifiedName, schema.TargetNamespace); 126elementTypeNames[i++] = ImportAnonymousGlobalElement(element, element.QualifiedName, schema.TargetNamespace).StableName; 251if (schema.TargetNamespace != Globals.SerializationNamespace) 260XmlQualifiedName currentTypeName = new XmlQualifiedName(schemaType.Name, schema.TargetNamespace); 297XmlQualifiedName currentElementName = new XmlQualifiedName(schemaElement.Name, schema.TargetNamespace);
System.ServiceModel (16)
System\ServiceModel\Description\MessageContractExporter.cs (3)
112EnsureXsdImport(schema.TargetNamespace, contractContext.WsdlPortType.ServiceDescription); 339if (SchemaHelper.NamespacesEqual(xsd.TargetNamespace, ns)) 1293if (!((XmlSchemas)schemas).Contains(schema.TargetNamespace))
System\ServiceModel\Description\MessageContractImporter.cs (4)
906if (!allSchemas.Contains(wsdl.TargetNamespace)) 911if (!allSchemas.Contains(soap.TargetNamespace)) 915if (!allSchemas.Contains(soapEncoding.TargetNamespace)) 1026if (import != null && import.Namespace == fakeXsdSchema.TargetNamespace)
System\ServiceModel\Description\MetadataSection.cs (1)
117section.Identifier = schema.TargetNamespace;
System\ServiceModel\Description\SchemaHelper.cs (7)
23XmlSchemaElement existingElement = (XmlSchemaElement)schema.Elements[new XmlQualifiedName(element.Name, schema.TargetNamespace)]; 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxConflictingGlobalElement, element.Name, schema.TargetNamespace, GetTypeName(element), GetTypeName(existingElement)))); 40if (NamespacesEqual(ns, schema.TargetNamespace) 59XmlSchemaType existingType = (XmlSchemaType)schema.SchemaTypes[new XmlQualifiedName(type.Name, schema.TargetNamespace)]; 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxConflictingGlobalType, type.Name, schema.TargetNamespace))); 80if ((existingSchema.TargetNamespace == null && ns.Length == 0) || ns.Equals(existingSchema.TargetNamespace))
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
1223string targetNs = external is XmlSchemaImport ? ((XmlSchemaImport)external).Namespace : xsdDoc.TargetNamespace;
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (4)
319if (schema.TargetNamespace != operationInfo.Request.Schema.TargetNamespace) 331if (schema.TargetNamespace != operationInfo.Response.Schema.TargetNamespace)
System.Web.Extensions (4)
Compilation\WCFModel\MetadataFile.cs (1)
792m_TargetNamespace = schema.TargetNamespace;
Compilation\WCFModel\SchemaMerger.cs (1)
139string targetNamespace = schema.TargetNamespace;
Script\Services\WebServiceTypeData.cs (2)
206if (schema.TargetNamespace == SerializationNamespace) { 212string schemaTargetNamespace = XmlConvert.DecodeName(schema.TargetNamespace);
System.Web.Services (10)
System\Web\Services\Description\SchemaCompiler.cs (3)
33if (schema.TargetNamespace == ns) 66ns = ((XmlSchema)source).TargetNamespace; 87ns = ((XmlSchema)tmp).TargetNamespace;
System\Web\Services\Description\ServiceDescription.cs (1)
444string tns = Types.Schemas[i].TargetNamespace;
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
1825WriteAttribute(@"targetNamespace", @"", ((global::System.String)o.@TargetNamespace));
System\Web\Services\Description\WebServicesInteroperability.cs (2)
309if (schema.TargetNamespace == null || schema.TargetNamespace.Length == 0) {
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (3)
121if (schema.TargetNamespace == ns) { 157AddExternal(top, schema.TargetNamespace, location); 161AddExternal(description.Types.Schemas[0], schema.TargetNamespace, location);
System.Xml (93)
System\Xml\Schema\Inference\Infer.cs (8)
467if (add && childURI != parentSchema.TargetNamespace) 525if (parentSchema != null && childURI == parentSchema.TargetNamespace) 568if (childURI != parentSchema.TargetNamespace ) 597if (childURI == parentSchema.TargetNamespace ) 1077if ((el.Name == xtr.LocalName) &&( parentSchema.TargetNamespace == childURI)) 1105if (el.Name == xtr.LocalName && parentSchema.TargetNamespace == childURI) 1135if (el.Name == xtr.LocalName && parentSchema.TargetNamespace == childURI) 1169if (parentSchema.TargetNamespace == childURI)
System\Xml\Schema\Preprocessor.cs (19)
101if (rootSchema.TargetNamespace != null) { 103targetNamespace = rootSchema.TargetNamespace; 105else if (targetNamespace != rootSchema.TargetNamespace) { 106SendValidationEvent(Res.Sch_MismatchTargetNamespaceEx, targetNamespace, rootSchema.TargetNamespace, rootSchema); 441string tns = schema.TargetNamespace; 467string tns = schema.TargetNamespace; 510if (importNS == schema.TargetNamespace) { 514if (importNS != externalSchema.TargetNamespace) { 515SendValidationEvent(Res.Sch_MismatchTargetNamespaceImport, importNS, externalSchema.TargetNamespace, import); 551if (externalSchema.TargetNamespace != null) { 552if (schema.TargetNamespace != externalSchema.TargetNamespace) { //namespaces for includes should be the same 553SendValidationEvent(Res.Sch_MismatchTargetNamespaceInclude, externalSchema.TargetNamespace, schema.TargetNamespace, include); 560Preprocess(externalSchema, schema.TargetNamespace, imports); 731string targetNS = schemaToUpdate.TargetNamespace == null ? string.Empty : schemaToUpdate.TargetNamespace; 1024if (Ref.Equal(currentSchema.TargetNamespace, NsXsi)) { 1723value.SetNamespace(currentSchema.TargetNamespace); //chameleon schemas are clones that have correct targetNamespace set
System\Xml\Schema\SchemaCollectionpreProcessor.cs (21)
246if(schema.TargetNamespace != null && referenceNamespaces[schema.TargetNamespace] == null) 247referenceNamespaces.Add(schema.TargetNamespace,schema.TargetNamespace); 256string tns = schema.TargetNamespace; 267SendValidationEvent(Res.Sch_InvalidNamespace, schema.TargetNamespace, schema); 282if (targetNamespace == null && schema.TargetNamespace != null) { // not specified 283targetNamespace = schema.TargetNamespace; 285else if (schema.TargetNamespace == null && targetNamespace != null && targetNamespace.Length == 0) { // no namespace schema 288if (targetNamespace != schema.TargetNamespace) { 289SendValidationEvent(Res.Sch_MismatchTargetNamespaceEx, targetNamespace, schema.TargetNamespace, schema); 293if (targetNamespace != schema.TargetNamespace) { 294SendValidationEvent(Res.Sch_MismatchTargetNamespaceImport, targetNamespace, schema.TargetNamespace, schema); 298if (schema.TargetNamespace != null) { 299if (targetNamespace != schema.TargetNamespace) { 300SendValidationEvent(Res.Sch_MismatchTargetNamespaceInclude, targetNamespace, schema.TargetNamespace, schema); 325Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 328if (((XmlSchemaImport)include).Namespace == null && schema.TargetNamespace == null) { 331else if (((XmlSchemaImport)include).Namespace == schema.TargetNamespace) { 337Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 715if (schema.TargetNamespace == XmlReservedNs.NsXsi) {
System\Xml\Schema\SchemaSetCompiler.cs (2)
113tns = schema.TargetNamespace; 522if (parentSchema.TargetNamespace != XmlSchema.Namespace) { //If it is not SForS, then error
System\Xml\Schema\XmlSchemaCollection.cs (4)
173return Add(schema.TargetNamespace, schemaInfo, schema, true, resolver); 213return this[schema.TargetNamespace] != null; 316 ns = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace;
System\Xml\Schema\XmlSchemaSet.cs (13)
383tns = schema.TargetNamespace; 390currentSchema = Add(schema.TargetNamespace, schema); 424return Add(schema.TargetNamespace, schema); 643if (PreprocessSchema(ref schema, schema.TargetNamespace)) { //No perf opt for already compiled schemas 848tns = impSchema.TargetNamespace; 879string tns = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace; 1187if (schemas.ContainsKey(schema.SchemaId) && (targetNamespace.Length == 0 || targetNamespace == schema.TargetNamespace)) { //schema is present in set 1190else if (schema.TargetNamespace == null) { //If schema not in set or namespace doesnt match, then it might be a chameleon 1199else if (targetNamespace.Length != 0 && targetNamespace != schema.TargetNamespace) { 1200SendValidationEvent(new XmlSchemaException(Res.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1226return schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace;
System\Xml\Schema\XmlSchemaValidator.cs (2)
299string tns = schema.TargetNamespace; 323tns = impSchema.TargetNamespace;
System\Xml\Schema\XsdValidator.cs (2)
137inlineNS = schema.TargetNamespace == null? string.Empty : schema.TargetNamespace;
System\Xml\Serialization\ImportContext.cs (1)
260string ns = ((XmlSchema)o.Parent).TargetNamespace;
System\Xml\Serialization\Mappings.cs (4)
996if (s.TargetNamespace != null && s.TargetNamespace.Length > 0) { 999anyNamespaces.Append(s.TargetNamespace); 1083if (Schema != null && Schema.TargetNamespace == elementNs) {
System\Xml\Serialization\SchemaObjectWriter.cs (1)
123return o == null ? "" : ((XmlSchema)o).TargetNamespace;
System\Xml\Serialization\XmlSchemaExporter.cs (6)
429if (schema.TargetNamespace != XmlSchema.Namespace) { 431AddSchemaImport(schema.TargetNamespace, ns); 445if (schema.TargetNamespace != XmlSchema.Namespace) { 447AddSchemaImport(schema.TargetNamespace, ns); 448if (!serializableMapping.XsiType.IsEmpty && serializableMapping.XsiType.Namespace == schema.TargetNamespace) 468string anyNs = serializableMapping.Schema.TargetNamespace;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
455if (type.DerivedFrom == baseName && TypesInUse[type.Name, schema.TargetNamespace] == null) { 1021equivalentElement.SubstitutionGroup.Namespace == schema.TargetNamespace &&
System\Xml\Serialization\XmlSchemas.cs (8)
253string ns = schema.TargetNamespace; 337prep.Execute(schema, schema.TargetNamespace, false); 369IList originals = (IList)SchemaSet.Schemas(schema.TargetNamespace); 437Debug.WriteLineIf(DiagnosticsSwitches.XmlSerialization.TraceVerbose, "XmlSerialization::Failed to Merge " + MergeFailedMessage(o, dest, schema.TargetNamespace) 439throw new InvalidOperationException(MergeFailedMessage(o, dest, schema.TargetNamespace)); 505ns = ((XmlSchema)tmp).TargetNamespace; 652prep.Execute(schema, schema.TargetNamespace, true); 673ns = ((XmlSchema)source).TargetNamespace;