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