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

◆ CheckAttributes()

void System.Xml.Schema.SchemaElementDecl.CheckAttributes ( Hashtable presence,
bool standalone )
inlinepackage

Definition at line 254 of file SchemaElementDecl.cs.

255 {
256 foreach (SchemaAttDef value in _attdefs.Values)
257 {
258 if (presence[value.Name] == null)
259 {
260 if (value.Presence == Use.Required)
261 {
262 throw new XmlSchemaException(System.SR.Sch_MissRequiredAttribute, value.Name.ToString());
263 }
264 if (standalone && value.IsDeclaredInExternal && (value.Presence == Use.Default || value.Presence == Use.Fixed))
265 {
266 throw new XmlSchemaException(System.SR.Sch_StandAlone, string.Empty);
267 }
268 }
269 }
270 }
static string Sch_StandAlone
Definition SR.cs:590
static string Sch_MissRequiredAttribute
Definition SR.cs:490
Definition SR.cs:7
readonly Dictionary< XmlQualifiedName, SchemaAttDef > _attdefs

References System.Xml.Schema.SchemaElementDecl._attdefs, System.Xml.Schema.SchemaDeclBase.presence, System.SR.Sch_MissRequiredAttribute, System.SR.Sch_StandAlone, System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.

Referenced by System.Xml.Schema.DtdValidator.ValidateEndStartElement(), System.Xml.Schema.XdrValidator.ValidateEndStartElement(), and System.Xml.Schema.XsdValidator.ValidateEndStartElement().