Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetSubstitutionGroupHead()

XmlSchemaElement System.Xml.Schema.XmlSchemaValidator.GetSubstitutionGroupHead ( XmlQualifiedName member)
inlineprivate

Definition at line 1304 of file XmlSchemaValidator.cs.

1305 {
1306 XmlSchemaElement element = _compiledSchemaInfo.GetElement(member);
1307 if (element != null)
1308 {
1309 XmlQualifiedName substitutionGroup = element.SubstitutionGroup;
1310 if (!substitutionGroup.IsEmpty)
1311 {
1313 if (element2 != null)
1314 {
1315 if ((element2.BlockResolved & XmlSchemaDerivationMethod.Substitution) != 0)
1316 {
1318 {
1319 member.ToString(),
1320 substitutionGroup.ToString()
1321 });
1322 return null;
1323 }
1324 if (!XmlSchemaType.IsDerivedFrom(element.ElementSchemaType, element2.ElementSchemaType, element2.BlockResolved))
1325 {
1327 {
1328 member.ToString(),
1329 substitutionGroup.ToString()
1330 });
1331 return null;
1332 }
1333 return element2;
1334 }
1335 }
1336 }
1337 return null;
1338 }
static string Sch_SubstitutionBlocked
Definition SR.cs:878
static string Sch_SubstitutionNotAllowed
Definition SR.cs:876
Definition SR.cs:7
XmlSchemaElement GetElement(XmlQualifiedName qname)

References System.Xml.Schema.XmlSchemaValidator._compiledSchemaInfo, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaElement.ElementSchemaType, System.Xml.Schema.SchemaInfo.GetElement(), System.Xml.Schema.XmlSchemaType.IsDerivedFrom(), System.SR.Sch_SubstitutionBlocked, System.SR.Sch_SubstitutionNotAllowed, System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(), and System.Xml.Schema.XmlSchemaElement.SubstitutionGroup.

Referenced by System.Xml.Schema.XmlSchemaValidator.ValidateElementContext().