13 writes to TargetNamespace
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
363xs.TargetNamespace = childURI; 506xs.TargetNamespace = targetNS;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
444tempSchema.TargetNamespace = XmlReservedNs.NsXml; 554schema.TargetNamespace = tns = NameTable.Add(tns); 2177chameleonSchema.TargetNamespace = targetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
302schema.TargetNamespace = tns = NameTable.Add(tns);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
1140builder._schema.TargetNamespace = value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
120schema.TargetNamespace = ns == null || ns.Length == 0 ? null : ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
296schema.TargetNamespace = string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (1)
861schema.TargetNamespace = ns;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
142xsdSchema.TargetNamespace = XmlSchema.Namespace;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
88schema.TargetNamespace = ns;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (1)
8522o.@TargetNamespace = CollapseWhitespace(Reader.Value);
121 references to TargetNamespace
dotnet-svcutil-lib (121)
CodeSerializer.cs (2)
171if (!string.IsNullOrEmpty(schema.TargetNamespace)) 173fileName = OutputPathHelper.FilenameFromUri(schema.TargetNamespace);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (8)
469if (add && childURI != parentSchema.TargetNamespace) 527if (parentSchema != null && childURI == parentSchema.TargetNamespace) 569if (childURI != parentSchema.TargetNamespace) 598if (childURI == parentSchema.TargetNamespace) 1087if ((el.Name == xtr.LocalName) && (parentSchema.TargetNamespace == childURI)) 1115if (el.Name == xtr.LocalName && parentSchema.TargetNamespace == childURI) 1145if (el.Name == xtr.LocalName && parentSchema.TargetNamespace == childURI) 1179if (parentSchema.TargetNamespace == childURI)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (19)
110if (_rootSchema.TargetNamespace != null) 114targetNamespace = _rootSchema.TargetNamespace; 116else if (targetNamespace != _rootSchema.TargetNamespace) 118SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceEx, targetNamespace, _rootSchema.TargetNamespace, _rootSchema); 519string tns = schema.TargetNamespace; 551string tns = schema.TargetNamespace; 603if (importNS == schema.TargetNamespace) 609if (importNS != externalSchema.TargetNamespace) 611SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceImport, importNS, externalSchema.TargetNamespace, import); 653if (externalSchema.TargetNamespace != null) 655if (schema.TargetNamespace != externalSchema.TargetNamespace) 657SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceInclude, externalSchema.TargetNamespace, schema.TargetNamespace, include); 665Preprocess(externalSchema, schema.TargetNamespace, imports); 869string targetNS = schemaToUpdate.TargetNamespace == null ? string.Empty : schemaToUpdate.TargetNamespace; 1240if (Ref.Equal(_currentSchema.TargetNamespace, _nsXsi)) 2136value.SetNamespace(_currentSchema.TargetNamespace); //chameleon schemas are clones that have correct targetNamespace set
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (21)
288if (schema.TargetNamespace != null && _referenceNamespaces[schema.TargetNamespace] == null) 289_referenceNamespaces.Add(schema.TargetNamespace, schema.TargetNamespace); 299string tns = schema.TargetNamespace; 315SendValidationEvent(ResXml.Sch_InvalidNamespace, schema.TargetNamespace, schema); 334if (targetNamespace == null && schema.TargetNamespace != null) 336targetNamespace = schema.TargetNamespace; 338else if (schema.TargetNamespace == null && targetNamespace != null && targetNamespace.Length == 0) 342if (targetNamespace != schema.TargetNamespace) 344SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceEx, targetNamespace, schema.TargetNamespace, schema); 348if (targetNamespace != schema.TargetNamespace) 350SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceImport, targetNamespace, schema.TargetNamespace, schema); 354if (schema.TargetNamespace != null) 356if (targetNamespace != schema.TargetNamespace) 358SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceInclude, targetNamespace, schema.TargetNamespace, schema); 390Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 394if (((XmlSchemaImport)include).Namespace == null && schema.TargetNamespace == null) 398else if (((XmlSchemaImport)include).Namespace == schema.TargetNamespace) 406Preprocess(include.Schema, schema.TargetNamespace, Compositor.Include); 888if (_schema.TargetNamespace == XmlReservedNs.NsXsi)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
136tns = schema.TargetNamespace; 655if (parentSchema.TargetNamespace != XmlSchema.Namespace)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (4)
190return Add(schema.TargetNamespace, schemaInfo, schema, true, resolver); 236return this[schema.TargetNamespace] != null; 358ns = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (13)
442tns = schema.TargetNamespace; 451currentSchema = Add(schema.TargetNamespace, schema); 495return Add(schema.TargetNamespace, schema); 753if (PreprocessSchema(ref schema, schema.TargetNamespace)) 983tns = impSchema.TargetNamespace; 1023string tns = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace; 1406if (_schemas.ContainsKey(schema.SchemaId) && (targetNamespace.Length == 0 || targetNamespace == schema.TargetNamespace)) 1410else if (schema.TargetNamespace == null) 1422else if (targetNamespace.Length != 0 && targetNamespace != schema.TargetNamespace) 1424SendValidationEvent(new XmlSchemaException(ResXml.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1455return schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (2)
334string tns = schema.TargetNamespace; 364tns = impSchema.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (2)
155inlineNS = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
306string ns = ((XmlSchema)o.Parent).TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (4)
1184if (s.TargetNamespace != null && s.TargetNamespace.Length > 0) 1188anyNamespaces.Append(s.TargetNamespace); 1289if (Schema != null && Schema.TargetNamespace == elementNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (1)
147return o == null ? "" : ((XmlSchema)o).TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (6)
496if (schema.TargetNamespace != XmlSchema.Namespace) 499AddSchemaImport(schema.TargetNamespace, ns); 515if (schema.TargetNamespace != XmlSchema.Namespace) 518AddSchemaImport(schema.TargetNamespace, ns); 519if (!serializableMapping.XsiType.IsEmpty && serializableMapping.XsiType.Namespace == schema.TargetNamespace) 541string anyNs = serializableMapping.Schema.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
517if (type.DerivedFrom == baseName && TypesInUse[type.Name, schema.TargetNamespace] == null) 1184equivalentElement.SubstitutionGroup.Namespace == schema.TargetNamespace &&
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (7)
287string ns = schema.TargetNamespace; 394prep.Execute(schema, schema.TargetNamespace, false); 434IList originals = (IList)SchemaSet.Schemas(schema.TargetNamespace); 525throw new InvalidOperationException(MergeFailedMessage(o, dest, schema.TargetNamespace)); 611ns = ((XmlSchema)tmp).TargetNamespace; 787prep.Execute(schema, schema.TargetNamespace, true); 815ns = ((XmlSchema)source).TargetNamespace;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (2)
62if (NamespacesEqual(ns, schema.TargetNamespace)) 118return new XmlQualifiedName(schemaElement.Name, schema.TargetNamespace);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
82if (schema.TargetNamespace != Globals.SerializationNamespace 83&& schema.TargetNamespace != Globals.SchemaNamespace) 92ImportAnonymousGlobalElement(element, element.QualifiedName, schema.TargetNamespace); 125_elementTypeNames[i++] = ImportAnonymousGlobalElement(element, element.QualifiedName, schema.TargetNamespace).StableName; 250if (schema.TargetNamespace != Globals.SerializationNamespace) 259XmlQualifiedName currentTypeName = new XmlQualifiedName(schemaType.Name, schema.TargetNamespace); 296XmlQualifiedName currentElementName = new XmlQualifiedName(schemaElement.Name, schema.TargetNamespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (4)
894if (!allSchemas.Contains(wsdl.TargetNamespace)) 899if (!allSchemas.Contains(soap.TargetNamespace)) 903if (!allSchemas.Contains(soapEncoding.TargetNamespace)) 1014if (import != null && import.Namespace == fakeXsdSchema.TargetNamespace)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSection.cs (1)
117section.Identifier = schema.TargetNamespace;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (7)
24XmlSchemaElement existingElement = (XmlSchemaElement)schema.Elements[new XmlQualifiedName(element.Name, schema.TargetNamespace)]; 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxConflictingGlobalElement, element.Name, schema.TargetNamespace, GetTypeName(element), GetTypeName(existingElement)))); 41if (NamespacesEqual(ns, schema.TargetNamespace) 60XmlSchemaType existingType = (XmlSchemaType)schema.SchemaTypes[new XmlQualifiedName(type.Name, schema.TargetNamespace)]; 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxConflictingGlobalType, type.Name, schema.TargetNamespace))); 81if ((existingSchema.TargetNamespace == null && ns.Length == 0) || ns.Equals(existingSchema.TargetNamespace))
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (1)
488string tns = Types.Schemas[i].TargetNamespace;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (1)
2331WriteAttribute(@"targetNamespace", @"", ((global::System.String)o.@TargetNamespace));
Metadata\MetadataDocumentLoader.cs (2)
337var schemaNamespace = schemaImport != null ? schemaImport.Namespace : schema.TargetNamespace; 580var chameleonSchemas = schemas.Where(s => string.IsNullOrEmpty(s.TargetNamespace));
Metadata\MetadataDocumentSaver.cs (2)
243var filePath = AddFilePath(schema.SourceUri, schema.TargetNamespace, ".xsd"); 251(!string.IsNullOrEmpty(u.Namespace) && u.Namespace == schema.TargetNamespace))).ToList();