35 writes to Namespace
dotnet-svcutil-lib (35)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
171newAccessor.Namespace = this.Namespace; 239Namespace = XmlReservedNs.NsXml;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (5)
117element.Namespace = element.Mapping.Namespace == null ? defaultNamespace : element.Mapping.Namespace; 164element.Namespace = element.Mapping.Namespace == null ? ns : element.Mapping.Namespace; 730attribute.Namespace = a.SoapAttribute == null || a.SoapAttribute.Namespace == null ? ns : a.SoapAttribute.Namespace; 745element.Namespace = ns; 759element.Namespace = ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
69accessor.Namespace = name.Namespace; 95accessor.Namespace = typeMapping.Namespace != null ? typeMapping.Namespace : ns; 157accessor.Namespace = ns; 181accessor.Namespace = ns; 437arrayAccessor.Namespace = ns; 455itemAccessor.Namespace = ns; 516itemAccessor.Namespace = ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (12)
215element.Namespace = ns; 1503arrayItemElement.Namespace = xmlArrayItem.Namespace == null ? arrayElementNs : xmlArrayItem.Namespace; 1587attribute.Namespace = a.XmlAttribute.Namespace == null ? ns : a.XmlAttribute.Namespace; 1634element.Namespace = rpc ? null : xmlElement.Namespace == null ? ns : xmlElement.Namespace; 1688element.Namespace = anyNs == null ? ns : anyNs; 1731arrayElement.Namespace = rpc ? null : a.XmlArray.Namespace == null ? ns : a.XmlArray.Namespace; 1768attribute.Namespace = a.XmlAttribute.Namespace == null ? ns : a.XmlAttribute.Namespace; 1813element.Namespace = rpc ? null : xmlElement.Namespace == null ? ns : xmlElement.Namespace; 1878element.Namespace = rpc ? null : xmlElement.Namespace == null ? ns : xmlElement.Namespace; 1932element.Namespace = anyNs == null ? ns : anyNs; 2240element.Namespace = ns; 2267element.Namespace = ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (9)
147accessor.Namespace = typeName.Namespace; 217accessor.Namespace = typeName.Namespace; 291accessor.Namespace = ns; 343accessor.Namespace = ns; 970choiceAccessor.Namespace = ns; 1328accessor.Namespace = ns; 1354arrayAccessor.Namespace = ns; 1696accessor.Namespace = XmlReservedNs.NsXml; 1734accessor.Namespace = ns;
125 references to Namespace
dotnet-svcutil-lib (125)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (10)
129return (Namespace == null ? "##any" : Namespace) + ":" + Name; 133return Namespace == defaultNs ? Name : Namespace + ":" + Name; 171newAccessor.Namespace = this.Namespace; 244if (Namespace == XmlReservedNs.NsXml) 878if (a[i].Name != b[i].Name || a[i].Namespace != b[i].Namespace || a[i].Form != b[i].Form || a[i].IsNullable != b[i].IsNullable) 901return (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace && Attribute.Form == mapping.Attribute.Form);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
302element.SchemaTypeName = ExportTypeMapping(accessor.Mapping, accessor.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (17)
89ExportType(mapping.Attribute.Mapping, Accessor.UnescapeName(mapping.Attribute.Name), mapping.Attribute.Namespace, null, false); 96ExportType(element.Mapping, Accessor.UnescapeName(element.Name), element.Namespace, null, false); 101ExportType(mapping.Text.Mapping, Accessor.UnescapeName(mapping.Text.Name), mapping.Text.Namespace, null, false); 109ExportType(element.Mapping, Accessor.UnescapeName(element.Name), element.Namespace, element, true); 663AddRootMetadata(metadata, mapping.Mapping, Accessor.UnescapeName(mapping.Accessor.Name), mapping.Accessor.Namespace, mapping.Accessor); 693bool sameElementNs = arrayElement.Form == XmlSchemaForm.Unqualified || arrayElement.Namespace == ns; 697ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.Namespace, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.Form, nestingLevel); 722bool sameNs = attribute.Namespace == ns; 726sameNs || defaultForm ? null : attribute.Namespace, 750bool sameNs = element.Namespace == ns; 754ExportAnyElement(metadata, elemName, element.Namespace, member.SequenceId); 760ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 767ExportArrayElements(metadata, array, element.Namespace, member.TypeDesc.ArrayElementTypeDesc, 0); 775ExportElement(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, sameType ? null : mapping.TypeDesc, mapping.TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 785bool sameNs = element.Namespace == ns; 787ExportAnyElement(metadata, elemName, element.Namespace, member.SequenceId); 791ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((TypeMapping)element.Mapping).TypeDesc, ((TypeMapping)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
83get { return _accessor.Namespace; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (1)
63get { return Accessor.Namespace; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (40)
302if (accessor.Namespace == ns) return accessor; 311Accessor existing = (Accessor)accessors[accessor.Name, accessor.Namespace]; 315accessors.Add(accessor.Name, accessor.Namespace, accessor); 335throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.Namespace, value1, value2)); 340throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace)); 346throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 363throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 365throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 1062ns = element.Namespace; 1504arrayItemElement.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(targetType), arrayItemElement.Namespace, ImportContext.Element, xmlArrayItem.DataType, null, limiter); 1508CheckForm(arrayItemElement.Form, arrayElementNs != arrayItemElement.Namespace); 1589if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) 1594CheckForm(attribute.Form, ns != attribute.Namespace); 1599if (attribute.Form == XmlSchemaForm.Qualified && attribute.Namespace != ns) 1635element.Mapping = ImportTypeMapping(typeModel, rpc ? ns : element.Namespace, ImportContext.Element, xmlElement.DataType, null, limiter); 1655CheckForm(element.Form, ns != element.Namespace); 1695element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, String.Empty, null, limiter); 1703CheckForm(element.Form, ns != element.Namespace); 1706elements.Add(element.Name, element.Namespace, element); 1733_savedArrayNamespace = arrayElement.Namespace; 1742CheckForm(arrayElement.Form, ns != arrayElement.Namespace); 1770if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) 1775CheckForm(attribute.Form, ns != attribute.Namespace); 1779if (attribute.Form == XmlSchemaForm.Qualified && attribute.Namespace != ns) 1815element.Mapping = ImportTypeMapping(typeModel, rpc ? ns : element.Namespace, ImportContext.Element, xmlElement.DataType, null, limiter); 1830CheckForm(element.Form, ns != element.Namespace); 1879element.Mapping = ImportTypeMapping(typeModel, rpc ? ns : element.Namespace, ImportContext.Element, xmlElement.DataType, null, false, openModel, limiter); 1898CheckForm(element.Form, ns != element.Namespace); 1940element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, String.Empty, null, false, openModel, limiter); 1947CheckForm(element.Form, ns != element.Namespace); 1956elements.Add(element.Name, element.Namespace, element); 2003if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 2020string id = element.Namespace != null && element.Namespace.Length > 0 ? element.Namespace + ":" + element.Name : element.Name; 2022throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.Name, element.Namespace)); 2176Accessor existing = (Accessor)scope[accessor.Name, accessor.Namespace]; 2181throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.Name, existing.Namespace)); 2189throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.Name, existing.Namespace)); 2194scope[accessor.Name, accessor.Namespace] = accessor;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (23)
64XmlSchemaType type = ExportSpecialMapping(special, xmlMembersMapping.Accessor.Namespace, false, null); 68AddSchemaItem(type, xmlMembersMapping.Accessor.Namespace, null); 71return (new XmlQualifiedName(xmlMembersMapping.Accessor.Name, xmlMembersMapping.Accessor.Namespace)); 118ExportMapping(member.Elements[0].Mapping, member.Elements[0].Namespace, member.Elements[0].Any); 271AddSchemaItem(element, accessor.Namespace, null); 272ExportElementMapping(element, accessor.Mapping, accessor.Namespace, accessor.Any); 773if (accessor.Namespace == null || accessor.Namespace == ns) 792AddSchemaItem(attribute, accessor.Namespace, ns); 797refAttribute.RefName = new XmlQualifiedName(accessor.Name, accessor.Namespace); 799AddSchemaImport(accessor.Namespace, ns); 815list.ItemTypeName = ExportPrimitiveMapping(pm, accessor.Namespace == null ? ns : accessor.Namespace); 828attribute.SchemaTypeName = ExportPrimitiveMapping(pm, accessor.Namespace == null ? ns : accessor.Namespace); 849if (accessor.Namespace != null && accessor.Namespace.Length > 0 && accessor.Namespace != ns) 850any.Namespace = accessor.Namespace; 871AddSchemaItem(element, accessor.Namespace, ns); 886ExportElementMapping(element, (TypeMapping)accessor.Mapping, accessor.Namespace, accessor.Any); 891refElement.RefName = new XmlQualifiedName(accessor.Name, accessor.Namespace); 895AddSchemaImport(accessor.Namespace, ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
1092ElementAccessor scopeElement = (ElementAccessor)scope[element.Name, element.Namespace]; 1097throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.Name, element.Namespace)); 1101throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.Name, element.Namespace)); 1107scope[element.Name, element.Namespace] = element;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
343ilg.Ldstr(mapping.Accessor.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (14)
1898WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), mapping.IsSoap); 2097WriteEncodedNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2099WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2102WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2573string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 2697string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 2743WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false); 3040WriteQuotedCSharpString(element.Namespace); 3172string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 3192WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 3509WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 3685if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 3703throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
401WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), false); 581WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 584WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 1228string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 1398string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 1465WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false); 1825ilg.Ldstr(element.Namespace); 2011string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 2041WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2320WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2399if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 2415throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));