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