23 writes to restrictionErrorMsg
System.Xml (23)
System\Xml\Schema\SchemaSetCompiler.cs (23)
882
restrictionErrorMsg
= null;
921
restrictionErrorMsg
= null;
1210
restrictionErrorMsg
= Res.GetString(Res.Sch_ForbiddenDerivedParticleForElem);
1238
restrictionErrorMsg
= Res.GetString(Res.Sch_SeqFromAll, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
1241
restrictionErrorMsg
= Res.GetString(Res.Sch_ForbiddenDerivedParticleForAll);
1264
restrictionErrorMsg
= Res.GetString(Res.Sch_SeqFromChoice, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
1267
restrictionErrorMsg
= Res.GetString(Res.Sch_ForbiddenDerivedParticleForChoice);
1281
restrictionErrorMsg
= Res.GetString(Res.Sch_ForbiddenDerivedParticleForSeq);
1313
restrictionErrorMsg
= Res.GetString(Res.Sch_ElementFromElement, derivedElement.QualifiedName, baseElement.QualifiedName);
1321
restrictionErrorMsg
= Res.GetString(Res.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString());
1325
restrictionErrorMsg
= Res.GetString(Res.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString());
1333
restrictionErrorMsg
= Res.GetString(Res.Sch_AnyFromAnyRule1);
1337
restrictionErrorMsg
= Res.GetString(Res.Sch_AnyFromAnyRule2);
1341
restrictionErrorMsg
= Res.GetString(Res.Sch_AnyFromAnyRule3);
1351
restrictionErrorMsg
= Res.GetString(Res.Sch_GroupBaseFromAny2, derivedGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseAny.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseAny.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
1359
restrictionErrorMsg
= Res.GetString(Res.Sch_GroupBaseFromAny1);
1421
restrictionErrorMsg
= Res.GetString(Res.Sch_ElementFromGroupBase1, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
1431
restrictionErrorMsg
= Res.GetString(Res.Sch_ElementFromGroupBase2, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
1441
restrictionErrorMsg
= Res.GetString(Res.Sch_ElementFromGroupBase3, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
1448
restrictionErrorMsg
= Res.GetString(Res.Sch_GroupBaseRestRangeInvalid);
1461
restrictionErrorMsg
= Res.GetString(Res.Sch_GroupBaseRestRangeInvalid);
1465
restrictionErrorMsg
= Res.GetString(Res.Sch_GroupBaseRestNoMap);
1477
restrictionErrorMsg
= Res.GetString(Res.Sch_GroupBaseRestNotEmptiable);
5 references to restrictionErrorMsg
System.Xml (5)
System\Xml\Schema\SchemaSetCompiler.cs (5)
898
if (
restrictionErrorMsg
!= null) {
899
SendValidationEvent(Res.Sch_InvalidParticleRestrictionDetailed,
restrictionErrorMsg
, complexType);
925
if (
restrictionErrorMsg
!= null) {
926
SendValidationEvent(Res.Sch_InvalidParticleRestrictionDetailed,
restrictionErrorMsg
, derivedParticle);
1476
if (
restrictionErrorMsg
== null) { //If restriction failed on previous check, do not overwrite error