11 writes to TargetNamespace
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaHelper.cs (1)
137
schema.
TargetNamespace
= ns;
System\Runtime\Serialization\SchemaImporter.cs (1)
141
xsdSchema.
TargetNamespace
= XmlSchema.Namespace;
System.Private.Xml (9)
System\Xml\Schema\Inference\Infer.cs (2)
341
xs.
TargetNamespace
= childURI;
487
xs.
TargetNamespace
= targetNS;
System\Xml\Schema\Preprocessor.cs (3)
426
tempSchema.
TargetNamespace
= XmlReservedNs.NsXml;
529
schema.
TargetNamespace
= tns = NameTable.Add(tns);
2145
chameleonSchema.
TargetNamespace
= targetNamespace;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
297
schema.
TargetNamespace
= tns = NameTable.Add(tns);
System\Xml\Schema\XsdBuilder.cs (1)
1132
builder._schema.
TargetNamespace
= value;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
269
schema.
TargetNamespace
= string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace;
System\Xml\Serialization\XmlSchemas.cs (1)
737
schema.
TargetNamespace
= ns;
107 references to TargetNamespace
System.Data.Common (2)
System\Data\XMLSchema.cs (2)
676
string? ns = schemaRoot.
TargetNamespace
;
854
ds.Namespace = schemaRoot.
TargetNamespace
;
System.Private.DataContractSerialization (18)
System\Runtime\Serialization\SchemaExporter.cs (4)
570
qname = new XmlQualifiedName(((XmlSchemaElement)item).Name, schema.
TargetNamespace
);
575
qname = new XmlQualifiedName(((XmlSchemaType)item).Name, schema.
TargetNamespace
);
674
typeNs = schema.
TargetNamespace
?? string.Empty;
794
any.Namespace = datasetSchema.
TargetNamespace
?? string.Empty;
System\Runtime\Serialization\SchemaHelper.cs (7)
68
if (NamespacesEqual(ns, schema.
TargetNamespace
))
100
if (NamespacesEqual(ns, schema.
TargetNamespace
))
122
if ((schema.
TargetNamespace
== null && ns.Length == 0) || ns.Equals(schema.
TargetNamespace
))
156
if (SchemaHelper.NamespacesEqual(ns, schema.
TargetNamespace
) || SchemaHelper.NamespacesEqual(ns, Globals.SchemaNamespace) || SchemaHelper.NamespacesEqual(ns, Globals.SchemaInstanceNamespace))
186
if (NamespacesEqual(ns, schema.
TargetNamespace
))
221
return new XmlQualifiedName(schemaElement.Name, schema.
TargetNamespace
);
System\Runtime\Serialization\SchemaImporter.cs (7)
78
if (schema.
TargetNamespace
!= Globals.SerializationNamespace
79
&& schema.
TargetNamespace
!= Globals.SchemaNamespace)
88
ImportAnonymousGlobalElement(element, element.QualifiedName, schema.
TargetNamespace
);
121
elementNameList.Add(ImportAnonymousGlobalElement(element, element.QualifiedName, schema.
TargetNamespace
).XmlName);
250
if (schema.
TargetNamespace
!= Globals.SerializationNamespace)
258
XmlQualifiedName currentTypeName = new XmlQualifiedName(schemaType.Name, schema.
TargetNamespace
);
291
XmlQualifiedName currentElementName = new XmlQualifiedName(schemaElement.Name, schema.
TargetNamespace
);
System.Private.Xml (87)
System\Xml\Schema\Inference\Infer.cs (8)
448
if (add && childURI != parentSchema.
TargetNamespace
)
509
if (parentSchema != null && childURI == parentSchema.
TargetNamespace
)
551
if (childURI != parentSchema!.
TargetNamespace
)
580
if (childURI == parentSchema.
TargetNamespace
)
1064
if ((el.Name == xtr.LocalName) && (parentSchema!.
TargetNamespace
== childURI))
1092
if (el.Name == xtr.LocalName && parentSchema!.
TargetNamespace
== childURI)
1122
if (el.Name == xtr.LocalName && parentSchema!.
TargetNamespace
== childURI)
1156
if (parentSchema!.
TargetNamespace
== childURI)
System\Xml\Schema\Preprocessor.cs (18)
105
if (_rootSchema.
TargetNamespace
!= null)
109
targetNamespace = _rootSchema.
TargetNamespace
;
111
else if (targetNamespace != _rootSchema.
TargetNamespace
)
113
SendValidationEvent(SR.Sch_MismatchTargetNamespaceEx, targetNamespace, _rootSchema.
TargetNamespace
, _rootSchema);
498
string tns = schema.
TargetNamespace
?? string.Empty;
526
string? tns = schema.
TargetNamespace
;
578
if (importNS == schema.
TargetNamespace
)
584
if (importNS != externalSchema.
TargetNamespace
)
586
SendValidationEvent(SR.Sch_MismatchTargetNamespaceImport, importNS, externalSchema.
TargetNamespace
, import);
628
if (externalSchema!.
TargetNamespace
!= null)
630
if (schema.
TargetNamespace
!= externalSchema.
TargetNamespace
)
632
SendValidationEvent(SR.Sch_MismatchTargetNamespaceInclude, externalSchema.
TargetNamespace
, schema.
TargetNamespace
, include);
640
Preprocess(externalSchema, schema.
TargetNamespace
, imports);
836
string targetNS = schemaToUpdate.
TargetNamespace
?? string.Empty;
1207
if (Ref.Equal(_currentSchema!.
TargetNamespace
, _nsXsi))
2105
value.SetNamespace(_currentSchema.
TargetNamespace
); //chameleon schemas are clones that have correct targetNamespace set
System\Xml\Schema\SchemaCollectionpreProcessor.cs (21)
283
if (schema.
TargetNamespace
!= null && _referenceNamespaces[schema.
TargetNamespace
] == null)
284
_referenceNamespaces.Add(schema.
TargetNamespace
, schema.
TargetNamespace
);
294
string? tns = schema.
TargetNamespace
;
310
SendValidationEvent(SR.Sch_InvalidNamespace, schema.
TargetNamespace
, schema);
329
if (targetNamespace == null && schema.
TargetNamespace
!= null)
331
targetNamespace = schema.
TargetNamespace
;
333
else if (schema.
TargetNamespace
== null && targetNamespace != null && targetNamespace.Length == 0)
337
if (targetNamespace != schema.
TargetNamespace
)
339
SendValidationEvent(SR.Sch_MismatchTargetNamespaceEx, targetNamespace, schema.
TargetNamespace
, schema);
343
if (targetNamespace != schema.
TargetNamespace
)
345
SendValidationEvent(SR.Sch_MismatchTargetNamespaceImport, targetNamespace, schema.
TargetNamespace
, schema);
349
if (schema.
TargetNamespace
!= null)
351
if (targetNamespace != schema.
TargetNamespace
)
353
SendValidationEvent(SR.Sch_MismatchTargetNamespaceInclude, targetNamespace, schema.
TargetNamespace
, schema);
385
Preprocess(include.Schema, schema.
TargetNamespace
, Compositor.Include);
389
if (((XmlSchemaImport)include).Namespace == null && schema.
TargetNamespace
== null)
393
else if (((XmlSchemaImport)include).Namespace == schema.
TargetNamespace
)
401
Preprocess(include.Schema, schema.
TargetNamespace
, Compositor.Include);
880
if (_schema!.
TargetNamespace
== XmlReservedNs.NsXsi)
System\Xml\Schema\SchemaSetCompiler.cs (2)
146
tns = schema!.
TargetNamespace
?? string.Empty;
668
if (parentSchema.
TargetNamespace
!= XmlSchema.Namespace)
System\Xml\Schema\XmlSchemaCollection.cs (3)
168
return Add(schema.
TargetNamespace
, schemaInfo, schema, true, resolver);
206
return this[schema.
TargetNamespace
] != null;
305
ns = schema.
TargetNamespace
?? string.Empty;
System\Xml\Schema\XmlSchemaSet.cs (11)
341
tns = schema!.
TargetNamespace
?? string.Empty;
346
currentSchema = Add(schema.
TargetNamespace
, schema);
388
return Add(schema.
TargetNamespace
, schema);
622
if (PreprocessSchema(ref schema, schema.
TargetNamespace
))
832
tns = impSchema.
TargetNamespace
?? string.Empty;
870
string tns = schema.
TargetNamespace
?? string.Empty;
1243
if (_schemas.ContainsKey(schema.SchemaId) && (targetNamespace.Length == 0 || targetNamespace == schema.
TargetNamespace
))
1247
else if (schema.
TargetNamespace
== null)
1259
else if (targetNamespace.Length != 0 && targetNamespace != schema.
TargetNamespace
)
1261
SendValidationEvent(new XmlSchemaException(SR.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.
TargetNamespace
}), XmlSeverityType.Error);
1296
return schema.
TargetNamespace
?? string.Empty;
System\Xml\Schema\XmlSchemaValidator.cs (2)
327
string? tns = schema.
TargetNamespace
?? string.Empty;
352
tns = impSchema.
TargetNamespace
?? string.Empty;
System\Xml\Schema\XsdValidator.cs (1)
152
inlineNS = schema.
TargetNamespace
?? string.Empty;
System\Xml\Serialization\ImportContext.cs (1)
232
string? ns = parent.
TargetNamespace
;
System\Xml\Serialization\Mappings.cs (4)
1115
if (s.
TargetNamespace
!= null && s.
TargetNamespace
.Length > 0)
1119
anyNamespaces.Append(s.
TargetNamespace
);
1221
if (Schema != null && Schema.
TargetNamespace
== elementNs)
System\Xml\Serialization\SchemaObjectWriter.cs (1)
145
return o == null ? "" : ((XmlSchema)o).
TargetNamespace
;
System\Xml\Serialization\XmlSchemaExporter.cs (6)
457
if (schema.
TargetNamespace
!= XmlSchema.Namespace)
460
AddSchemaImport(schema.
TargetNamespace
, ns);
476
if (schema.
TargetNamespace
!= XmlSchema.Namespace)
479
AddSchemaImport(schema.
TargetNamespace
, ns);
480
if (!serializableMapping.XsiType!.IsEmpty && serializableMapping.XsiType.Namespace == schema.
TargetNamespace
)
502
string? anyNs = serializableMapping.Schema.
TargetNamespace
;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
404
if (type.DerivedFrom == baseName && TypesInUse[type.Name, schema.
TargetNamespace
] == null)
1079
equivalentElement.SubstitutionGroup.Namespace == schema.
TargetNamespace
&&
System\Xml\Serialization\XmlSchemas.cs (7)
187
string? ns = schema.
TargetNamespace
;
290
prep.Execute(schema, schema.
TargetNamespace
, false);
327
IList originals = (IList)SchemaSet.Schemas(schema.
TargetNamespace
);
417
throw new InvalidOperationException(MergeFailedMessage(o, dest, schema.
TargetNamespace
));
503
ns = ((XmlSchema)tmp).
TargetNamespace
;
681
prep.Execute(schema, schema.
TargetNamespace
, true);
709
ns = ((XmlSchema)source).
TargetNamespace
;