System\Xml\Schema\XmlSchemaValidator.cs (16)
538&& attQName.Namespace.Length != 0
539&& _compiledSchemaInfo.Contains(attQName.Namespace)
646AttributeIdentityConstraints(attQName.Name, attQName.Namespace, typedVal!, attValue!.ToString()!, datatype);
1035string attributeNS = _nameTable.Add(attdef.Name.Namespace);
1089AttributeIdentityConstraints(attdef.Name.Name, attdef.Name.Namespace, attdef.DefaultValueTyped, attdef.DefaultValueRaw, datatype);
1531_context.Namespace = elementName.Namespace;
1692if (elementDeclXsi == null && xsiTypeName.Namespace == _nsXs)
1782if (Ref.Equal(attQName.Namespace, _nsXml) && (_validationFlags & XmlSchemaValidationFlags.AllowXmlAttributes) != 0)
2629if (currentQName.Namespace != nextParticle.GetQualifiedName().Namespace)
2679EnumerateAny(builder, name.Namespace);
2683if (name.Namespace.Length != 0)
2685builder.Append(SR.Format(SR.Sch_ElementNameAndNamespace, name.Name, name.Namespace));
2723if (name.Namespace.Length != 0)
2725builder.Append(SR.Format(SR.Sch_ElementNameAndNamespace, subBuilder, name.Namespace));
2763return BuildElementName(qname.Name, qname.Namespace);
System\Xml\Serialization\XmlSchemaImporter.cs (28)
71throw new InvalidOperationException(SR.Format(SR.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName));
101accessor.Namespace = typeName.Namespace;
124throw new InvalidOperationException(SR.Format(SR.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName));
160mapping = ImportMembersType(type, typeName.Namespace, elementName);
168accessor.Namespace = typeName.Namespace;
254accessor = ImportElement(element, string.Empty, desiredMappingType, baseType, name.Namespace, true);
285throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace));
417if (name.Name == Soap.UrType && name.Namespace == XmlSchema.Namespace)
429mapping = ImportType((XmlSchemaComplexType)type, name.Namespace, name.Name, desiredMappingType, baseType);
432mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false);
436if (addref && name.Namespace != XmlSchema.Namespace)
544throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
673ImportAttributeGroupMembers(FindAttributeGroup(groupName), identifier, members, membersScope, groupName.Namespace);
922if (GatherGroupChoices(FindGroup(refGroup.RefName), choiceElements, identifier, refGroup.RefName.Namespace, ref needExplicitOrder, allowDuplicates))
963AddScopeElement(choiceElements, ImportElement(elements[j], identifier, typeof(TypeMapping), null, elements[j].QualifiedName.Namespace, true), ref duplicateElements, allowDuplicates);
967AddScopeElement(choiceElements, ImportElement(element, identifier, typeof(TypeMapping), null, element.QualifiedName.Namespace, false), ref duplicateElements, allowDuplicates);
1024ImportGroupMembers(FindGroup(refGroup.RefName).Particle, identifier, members, membersScope, elementsScope, refGroup.RefName.Namespace, groupRepeats | refGroup.IsMultipleOccurrence, ref mixed, ref needExplicitOrder, allowDuplicates, allowUnboundedElements);
1079equivalentElement.SubstitutionGroup.Namespace == schema.TargetNamespace &&
1608if (attribute.RefName.Namespace == XmlReservedNs.NsXml)
1611return ImportAttribute(FindAttribute(attribute.RefName), identifier, attribute.RefName.Namespace, defaultValueProvider);
1688mapping = ImportDataType(FindDataType(restriction.BaseTypeName, flags)!, restriction.BaseTypeName.Namespace, identifier, null, flags, false);
1689if (restriction.BaseTypeName.Namespace != XmlSchema.Namespace)
1904if (qname.Namespace != XmlSchema.Namespace)
1918TypeDesc? typeDesc = TypeScope.GetTypeDesc(name.Name, name.Namespace, flags);
1928if (name.Namespace == XmlSchema.Namespace)
1934if (name.Name == Soap.Array && name.Namespace == Soap.Encoding)
1999return string.IsNullOrEmpty(element.QualifiedName.Namespace) ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified;
2026return string.IsNullOrEmpty(attribute.QualifiedName.Namespace) ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified;
System\Xml\Serialization\XmlSerializationReader.cs (32)
274if ((object)typeName.Namespace == (object)_schemaNsID || (object)typeName.Namespace == (object)_soapNsID || (object)typeName.Namespace == (object)_soap12NsID)
342else if ((object)typeName.Namespace == (object)_schemaNs2000ID || (object)typeName.Namespace == (object)_schemaNs1999ID)
406else if ((object)typeName.Namespace == (object)_schemaNonXsdTypesNsID)
524if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)_urTypeID)
527if ((object)type.Namespace == (object)_schemaNsID || (object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID)
593else if ((object)type.Name == (object)_base64ID && ((object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID))
598else if ((object)type.Namespace == (object)_schemaNs2000ID || (object)type.Namespace == (object)_schemaNs1999ID)
664else if ((object)type.Namespace == (object)_schemaNonXsdTypesNsID)
686if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)_urTypeID)
691if ((object)type.Namespace == (object)_schemaNsID || (object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID)
758else if ((object)type.Name == (object)_base64ID && ((object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID))
763else if ((object)type.Namespace == (object)_schemaNonXsdTypesNsID)
951if (qname.Namespace != ns) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag()));
1285return new InvalidOperationException(SR.Format(SR.XmlUnknownType, type.Name, type.Namespace, CurrentTag()));
1673array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength);
1702typens = qname.Namespace;
4827WriteQNameEqual("tser", sm.XsiType!.Name, sm.XsiType.Namespace);
4892WriteQNameEqual("tser", derived.XsiType!.Name, derived.XsiType.Namespace);
4919WriteQuotedCSharpString(derived.XsiType.Namespace);
4923WriteQuotedCSharpString(head.XsiType.Namespace);
4937WriteQuotedCSharpString(derived.XsiType.Namespace);