System\Xml\Dom\XmlLoader.cs (7)
630dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral, _doc));
639XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc);
649XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc);
669_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null),
670_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null));
System\Xml\Schema\DtdParser.cs (23)
682if (attrDef != null && attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals("xml") && attrDef.Name.Name == "space")
708if (attrDef.Name.Name == "space")
735else if (attrDef.Name.Name == "lang")
944SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, SR.Sch_DupElementDecl, GetNameString());
1276string notationName = entity.NData.Name;
1312if (!_schemaInfo.Notations.ContainsKey(notationName.Name))
1314_undeclaredNotations?.Remove(notationName.Name);
1316_schemaInfo.Notations.Add(notation.Name.Name, notation);
1323SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, SR.Sch_DupNotation, notationName.Name);
3257Throw(_curPos - entityName.Name.Length - 1, SR.Xml_InvalidParEntityRef);
3267Throw(_curPos - entityName.Name.Length - 1, paramEntity ? SR.Xml_RecursiveParEntity : SR.Xml_RecursiveGenEntity, entityName.Name);
3360SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, SR.Xml_UndeclaredParEntity, entityName.Name);
3369SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, SR.Xml_UndeclaredEntity, entityName.Name);
3374Throw(_curPos - entityName.Name.Length - 1, SR.Xml_UndeclaredEntity, entityName.Name);
3382Throw(_curPos - entityName.Name.Length - 1, SR.Xml_UnparsedEntityRef, entityName.Name);
3387Throw(_curPos - entityName.Name.Length - 1, SR.Xml_ExternalEntityInAttValue, entityName.Name);
System\Xml\Schema\DtdParserAsync.cs (13)
326if (attrDef != null && attrDef.Prefix.Length > 0 && attrDef.Prefix.Equals("xml") && attrDef.Name.Name == "space")
352if (attrDef.Name.Name == "space")
379else if (attrDef.Name.Name == "lang")
588SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, SR.Sch_DupElementDecl, GetNameString());
909string notationName = entity.NData.Name;
945if (!_schemaInfo.Notations.ContainsKey(notationName.Name))
947_undeclaredNotations?.Remove(notationName.Name);
950_schemaInfo.Notations.Add(notation.Name.Name, notation);
957SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, SR.Sch_DupNotation, notationName.Name);
2587Throw(_curPos - entityName.Name.Length - 1, SR.Xml_InvalidParEntityRef);
2597Throw(_curPos - entityName.Name.Length - 1, paramEntity ? SR.Xml_RecursiveParEntity : SR.Xml_RecursiveGenEntity, entityName.Name);
System\Xml\Schema\XdrBuilder.cs (19)
469qnameValue = new XmlQualifiedName(qnameValue.Name, _TargetNamespace);
473qnameValue = new XmlQualifiedName(qnameValue.Name);
495XmlQualifiedName.ToString(qname.Name, prefix));
678gname = new XmlQualifiedName(gname.Name, builder._TargetNamespace);
689builder.SendValidationEvent(SR.Sch_UndeclaredAttribute, gname.Name);
697builder.SendValidationEvent(SR.Sch_UndeclaredElement, XmlQualifiedName.ToString(ed!.Name.Name, ed.Prefix));
733builder.SendValidationEvent(SR.Sch_DupElementDecl, XmlQualifiedName.ToString(qname.Name, prefix));
1046builder.SendValidationEvent(SR.Sch_DupAttribute, XmlQualifiedName.ToString(qname.Name, prefix));
1052qname = new XmlQualifiedName(qname.Name, builder._TargetNamespace);
1056builder.SendValidationEvent(SR.Sch_DupAttribute, XmlQualifiedName.ToString(qname.Name, prefix));
1075builder._AttributeDef._AttDef!.Datatype = builder.CheckDatatype(qname.Name)!;
1288gname = new XmlQualifiedName(qname.Name, builder._TargetNamespace);
1297builder.SendValidationEvent(SR.Sch_UndeclaredAttribute, XmlQualifiedName.ToString(qname.Name, prefix));
1560SendValidationEvent(SR.Sch_UnknownOrder, qname.Name);
1589if (qname.Name == "yes")
1593else if (qname.Name != "no")
1743SendValidationEvent(SR.Sch_UnknownContent, qname.Name);
1756SendValidationEvent(SR.Sch_UnknownModel, qname.Name);
1774XmlQualifiedName.ToString(_ElementDef._ElementDecl.Name.Name, _ElementDef._ElementDecl.Prefix));
System\Xml\Schema\XmlSchemaValidator.cs (10)
646AttributeIdentityConstraints(attQName.Name, attQName.Namespace, typedVal!, attValue!.ToString()!, datatype);
1051attrData.LocalName = _nameTable.Add(attdef.Name.Name);
1089AttributeIdentityConstraints(attdef.Name.Name, attdef.Name.Namespace, attdef.DefaultValueTyped, attdef.DefaultValueRaw, datatype);
1530_context.LocalName = elementName.Name;
2677if (name.Name == "*")
2685builder.Append(SR.Format(SR.Sch_ElementNameAndNamespace, name.Name, name.Namespace));
2689builder.Append(SR.Format(SR.Sch_ElementName, name.Name));
2701if (name.Name == "*")
2714subBuilder.Append(name.Name);
2763return BuildElementName(qname.Name, qname.Namespace);
System\Xml\Serialization\XmlSchemaImporter.cs (15)
71throw new InvalidOperationException(SR.Format(SR.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName));
100accessor.Name = typeName.Name;
124throw new InvalidOperationException(SR.Format(SR.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName));
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);
544throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
1080equivalentElement.SubstitutionGroup.Name == element.Name)
1594accessor.Name = name.Name;
1859throw new InvalidOperationException(SR.Format(SR.XmlMissingGroup, name.Name));
1868throw new InvalidOperationException(SR.Format(SR.XmlMissingAttributeGroup, name.Name));
1918TypeDesc? typeDesc = TypeScope.GetTypeDesc(name.Name, name.Namespace, flags);
1934if (name.Name == Soap.Array && name.Namespace == Soap.Encoding)
1974throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
System\Xml\Serialization\XmlSerializationReader.cs (241)
276if ((object)typeName.Name == (object)_stringID ||
277(object)typeName.Name == (object)_anyURIID ||
278(object)typeName.Name == (object)_durationID ||
279(object)typeName.Name == (object)_ENTITYID ||
280(object)typeName.Name == (object)_ENTITIESID ||
281(object)typeName.Name == (object)_gDayID ||
282(object)typeName.Name == (object)_gMonthID ||
283(object)typeName.Name == (object)_gMonthDayID ||
284(object)typeName.Name == (object)_gYearID ||
285(object)typeName.Name == (object)_gYearMonthID ||
286(object)typeName.Name == (object)_IDID ||
287(object)typeName.Name == (object)_IDREFID ||
288(object)typeName.Name == (object)_IDREFSID ||
289(object)typeName.Name == (object)_integerID ||
290(object)typeName.Name == (object)_languageID ||
291(object)typeName.Name == (object)_nameID ||
292(object)typeName.Name == (object)_NCNameID ||
293(object)typeName.Name == (object)_NMTOKENID ||
294(object)typeName.Name == (object)_NMTOKENSID ||
295(object)typeName.Name == (object)_negativeIntegerID ||
296(object)typeName.Name == (object)_nonPositiveIntegerID ||
297(object)typeName.Name == (object)_nonNegativeIntegerID ||
298(object)typeName.Name == (object)_normalizedStringID ||
299(object)typeName.Name == (object)_NOTATIONID ||
300(object)typeName.Name == (object)_positiveIntegerID ||
301(object)typeName.Name == (object)_tokenID)
303else if ((object)typeName.Name == (object)_intID)
305else if ((object)typeName.Name == (object)_booleanID)
307else if ((object)typeName.Name == (object)_shortID)
309else if ((object)typeName.Name == (object)_longID)
311else if ((object)typeName.Name == (object)_floatID)
313else if ((object)typeName.Name == (object)_doubleID)
315else if ((object)typeName.Name == (object)_decimalID)
317else if ((object)typeName.Name == (object)_dateTimeID)
319else if ((object)typeName.Name == (object)_qnameID)
321else if ((object)typeName.Name == (object)_dateID)
323else if ((object)typeName.Name == (object)_timeID)
325else if ((object)typeName.Name == (object)_hexBinaryID)
327else if ((object)typeName.Name == (object)_base64BinaryID)
329else if ((object)typeName.Name == (object)_unsignedByteID)
331else if ((object)typeName.Name == (object)_byteID)
333else if ((object)typeName.Name == (object)_unsignedShortID)
335else if ((object)typeName.Name == (object)_unsignedIntID)
337else if ((object)typeName.Name == (object)_unsignedLongID)
344if ((object)typeName.Name == (object)_stringID ||
345(object)typeName.Name == (object)_anyURIID ||
346(object)typeName.Name == (object)_durationID ||
347(object)typeName.Name == (object)_ENTITYID ||
348(object)typeName.Name == (object)_ENTITIESID ||
349(object)typeName.Name == (object)_gDayID ||
350(object)typeName.Name == (object)_gMonthID ||
351(object)typeName.Name == (object)_gMonthDayID ||
352(object)typeName.Name == (object)_gYearID ||
353(object)typeName.Name == (object)_gYearMonthID ||
354(object)typeName.Name == (object)_IDID ||
355(object)typeName.Name == (object)_IDREFID ||
356(object)typeName.Name == (object)_IDREFSID ||
357(object)typeName.Name == (object)_integerID ||
358(object)typeName.Name == (object)_languageID ||
359(object)typeName.Name == (object)_nameID ||
360(object)typeName.Name == (object)_NCNameID ||
361(object)typeName.Name == (object)_NMTOKENID ||
362(object)typeName.Name == (object)_NMTOKENSID ||
363(object)typeName.Name == (object)_negativeIntegerID ||
364(object)typeName.Name == (object)_nonPositiveIntegerID ||
365(object)typeName.Name == (object)_nonNegativeIntegerID ||
366(object)typeName.Name == (object)_normalizedStringID ||
367(object)typeName.Name == (object)_NOTATIONID ||
368(object)typeName.Name == (object)_positiveIntegerID ||
369(object)typeName.Name == (object)_tokenID)
371else if ((object)typeName.Name == (object)_intID)
373else if ((object)typeName.Name == (object)_booleanID)
375else if ((object)typeName.Name == (object)_shortID)
377else if ((object)typeName.Name == (object)_longID)
379else if ((object)typeName.Name == (object)_floatID)
381else if ((object)typeName.Name == (object)_doubleID)
383else if ((object)typeName.Name == (object)_oldDecimalID)
385else if ((object)typeName.Name == (object)_oldTimeInstantID)
387else if ((object)typeName.Name == (object)_qnameID)
389else if ((object)typeName.Name == (object)_dateID)
391else if ((object)typeName.Name == (object)_timeID)
393else if ((object)typeName.Name == (object)_hexBinaryID)
395else if ((object)typeName.Name == (object)_byteID)
397else if ((object)typeName.Name == (object)_unsignedShortID)
399else if ((object)typeName.Name == (object)_unsignedIntID)
401else if ((object)typeName.Name == (object)_unsignedLongID)
408if ((object)typeName.Name == (object)_charID)
410else if ((object)typeName.Name == (object)_guidID)
524if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)_urTypeID)
529if ((object)type.Name == (object)_stringID ||
530(object)type.Name == (object)_normalizedStringID)
532else if ((object)type.Name == (object)_anyURIID ||
533(object)type.Name == (object)_durationID ||
534(object)type.Name == (object)_ENTITYID ||
535(object)type.Name == (object)_ENTITIESID ||
536(object)type.Name == (object)_gDayID ||
537(object)type.Name == (object)_gMonthID ||
538(object)type.Name == (object)_gMonthDayID ||
539(object)type.Name == (object)_gYearID ||
540(object)type.Name == (object)_gYearMonthID ||
541(object)type.Name == (object)_IDID ||
542(object)type.Name == (object)_IDREFID ||
543(object)type.Name == (object)_IDREFSID ||
544(object)type.Name == (object)_integerID ||
545(object)type.Name == (object)_languageID ||
546(object)type.Name == (object)_nameID ||
547(object)type.Name == (object)_NCNameID ||
548(object)type.Name == (object)_NMTOKENID ||
549(object)type.Name == (object)_NMTOKENSID ||
550(object)type.Name == (object)_negativeIntegerID ||
551(object)type.Name == (object)_nonPositiveIntegerID ||
552(object)type.Name == (object)_nonNegativeIntegerID ||
553(object)type.Name == (object)_NOTATIONID ||
554(object)type.Name == (object)_positiveIntegerID ||
555(object)type.Name == (object)_tokenID)
557else if ((object)type.Name == (object)_intID)
559else if ((object)type.Name == (object)_booleanID)
561else if ((object)type.Name == (object)_shortID)
563else if ((object)type.Name == (object)_longID)
565else if ((object)type.Name == (object)_floatID)
567else if ((object)type.Name == (object)_doubleID)
569else if ((object)type.Name == (object)_decimalID)
571else if ((object)type.Name == (object)_dateTimeID)
573else if ((object)type.Name == (object)_qnameID)
575else if ((object)type.Name == (object)_dateID)
577else if ((object)type.Name == (object)_timeID)
579else if ((object)type.Name == (object)_unsignedByteID)
581else if ((object)type.Name == (object)_byteID)
583else if ((object)type.Name == (object)_unsignedShortID)
585else if ((object)type.Name == (object)_unsignedIntID)
587else if ((object)type.Name == (object)_unsignedLongID)
589else if ((object)type.Name == (object)_hexBinaryID)
591else if ((object)type.Name == (object)_base64BinaryID)
593else if ((object)type.Name == (object)_base64ID && ((object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID))
600if ((object)type.Name == (object)_stringID ||
601(object)type.Name == (object)_normalizedStringID)
603else if ((object)type.Name == (object)_anyURIID ||
604(object)type.Name == (object)_anyURIID ||
605(object)type.Name == (object)_durationID ||
606(object)type.Name == (object)_ENTITYID ||
607(object)type.Name == (object)_ENTITIESID ||
608(object)type.Name == (object)_gDayID ||
609(object)type.Name == (object)_gMonthID ||
610(object)type.Name == (object)_gMonthDayID ||
611(object)type.Name == (object)_gYearID ||
612(object)type.Name == (object)_gYearMonthID ||
613(object)type.Name == (object)_IDID ||
614(object)type.Name == (object)_IDREFID ||
615(object)type.Name == (object)_IDREFSID ||
616(object)type.Name == (object)_integerID ||
617(object)type.Name == (object)_languageID ||
618(object)type.Name == (object)_nameID ||
619(object)type.Name == (object)_NCNameID ||
620(object)type.Name == (object)_NMTOKENID ||
621(object)type.Name == (object)_NMTOKENSID ||
622(object)type.Name == (object)_negativeIntegerID ||
623(object)type.Name == (object)_nonPositiveIntegerID ||
624(object)type.Name == (object)_nonNegativeIntegerID ||
625(object)type.Name == (object)_NOTATIONID ||
626(object)type.Name == (object)_positiveIntegerID ||
627(object)type.Name == (object)_tokenID)
629else if ((object)type.Name == (object)_intID)
631else if ((object)type.Name == (object)_booleanID)
633else if ((object)type.Name == (object)_shortID)
635else if ((object)type.Name == (object)_longID)
637else if ((object)type.Name == (object)_floatID)
639else if ((object)type.Name == (object)_doubleID)
641else if ((object)type.Name == (object)_oldDecimalID)
643else if ((object)type.Name == (object)_oldTimeInstantID)
645else if ((object)type.Name == (object)_qnameID)
647else if ((object)type.Name == (object)_dateID)
649else if ((object)type.Name == (object)_timeID)
651else if ((object)type.Name == (object)_unsignedByteID)
653else if ((object)type.Name == (object)_byteID)
655else if ((object)type.Name == (object)_unsignedShortID)
657else if ((object)type.Name == (object)_unsignedIntID)
659else if ((object)type.Name == (object)_unsignedLongID)
666if ((object)type.Name == (object)_charID)
668else if ((object)type.Name == (object)_guidID)
670else if ((object)type.Name == (object)_timeSpanID)
672else if ((object)type.Name == (object)_dateTimeOffsetID)
686if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)_urTypeID)
693if ((object)type.Name == (object)_stringID ||
694(object)type.Name == (object)_anyURIID ||
695(object)type.Name == (object)_durationID ||
696(object)type.Name == (object)_ENTITYID ||
697(object)type.Name == (object)_ENTITIESID ||
698(object)type.Name == (object)_gDayID ||
699(object)type.Name == (object)_gMonthID ||
700(object)type.Name == (object)_gMonthDayID ||
701(object)type.Name == (object)_gYearID ||
702(object)type.Name == (object)_gYearMonthID ||
703(object)type.Name == (object)_IDID ||
704(object)type.Name == (object)_IDREFID ||
705(object)type.Name == (object)_IDREFSID ||
706(object)type.Name == (object)_integerID ||
707(object)type.Name == (object)_languageID ||
708(object)type.Name == (object)_nameID ||
709(object)type.Name == (object)_NCNameID ||
710(object)type.Name == (object)_NMTOKENID ||
711(object)type.Name == (object)_NMTOKENSID ||
712(object)type.Name == (object)_negativeIntegerID ||
713(object)type.Name == (object)_nonPositiveIntegerID ||
714(object)type.Name == (object)_nonNegativeIntegerID ||
715(object)type.Name == (object)_normalizedStringID ||
716(object)type.Name == (object)_NOTATIONID ||
717(object)type.Name == (object)_positiveIntegerID ||
718(object)type.Name == (object)_tokenID)
720else if ((object)type.Name == (object)_intID)
724else if ((object)type.Name == (object)_booleanID)
726else if ((object)type.Name == (object)_shortID)
728else if ((object)type.Name == (object)_longID)
730else if ((object)type.Name == (object)_floatID)
732else if ((object)type.Name == (object)_doubleID)
734else if ((object)type.Name == (object)_decimalID)
736else if ((object)type.Name == (object)_dateTimeID)
738else if ((object)type.Name == (object)_qnameID)
740else if ((object)type.Name == (object)_dateID)
742else if ((object)type.Name == (object)_timeID)
744else if ((object)type.Name == (object)_unsignedByteID)
746else if ((object)type.Name == (object)_byteID)
748else if ((object)type.Name == (object)_unsignedShortID)
750else if ((object)type.Name == (object)_unsignedIntID)
752else if ((object)type.Name == (object)_unsignedLongID)
754else if ((object)type.Name == (object)_hexBinaryID)
756else if ((object)type.Name == (object)_base64BinaryID)
758else if ((object)type.Name == (object)_base64ID && ((object)type.Namespace == (object)_soapNsID || (object)type.Namespace == (object)_soap12NsID))
765if ((object)type.Name == (object)_charID)
767else if ((object)type.Name == (object)_guidID)
769else if ((object)type.Name == (object)_timeSpanID)
771else if ((object)type.Name == (object)_dateTimeOffsetID)
950if (qname.Name != name) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag()));
1285return new InvalidOperationException(SR.Format(SR.XmlUnknownType, type.Name, type.Namespace, CurrentTag()));
1673array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength);
1701type = qname.Name;
4827WriteQNameEqual("tser", sm.XsiType!.Name, sm.XsiType.Namespace);
4892WriteQNameEqual("tser", derived.XsiType!.Name, derived.XsiType.Namespace);
4917WriteQuotedCSharpString(derived.XsiType.Name);
4921WriteQuotedCSharpString(head.XsiType!.Name);
4935WriteQuotedCSharpString(derived.XsiType.Name);