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

◆ ValidateEndStartElement()

void System.Xml.Schema.XsdValidator.ValidateEndStartElement ( )
inlineprivate

Definition at line 523 of file XsdValidator.cs.

524 {
526 {
527 for (int i = 0; i < context.ElementDecl.DefaultAttDefs.Count; i++)
528 {
529 SchemaAttDef schemaAttDef = (SchemaAttDef)context.ElementDecl.DefaultAttDefs[i];
532 {
533 AttributeIdentityConstraints(schemaAttDef.Name.Name, schemaAttDef.Name.Namespace, UnWrapUnion(schemaAttDef.DefaultValueTyped), schemaAttDef.DefaultValueRaw, schemaAttDef);
534 }
535 }
536 }
538 {
539 try
540 {
542 }
543 catch (XmlSchemaException ex)
544 {
545 ex.SetSource(reader.BaseURI, base.PositionInfo.LineNumber, base.PositionInfo.LinePosition);
547 }
548 }
549 if (context.ElementDecl.Datatype != null)
550 {
551 checkDatatype = true;
552 hasSibling = false;
553 textString = string.Empty;
555 }
556 }
virtual bool Contains(object key)
Definition Hashtable.cs:719
void SendValidationEvent(string code)
XmlValidatingReaderImpl reader
void CheckAttributes(Hashtable presence, bool standalone)
IList< IDtdDefaultAttributeInfo > DefaultAttDefs
object UnWrapUnion(object typedValue)
void AttributeIdentityConstraints(string name, string ns, object obj, string sobj, SchemaAttDef attdef)
bool AddDefaultAttribute(SchemaAttDef attdef)

References System.Xml.Schema.XsdValidator._attPresence, System.Xml.XmlValidatingReaderImpl.AddDefaultAttribute(), System.Xml.Schema.XsdValidator.AttributeIdentityConstraints(), System.Xml.XmlValidatingReaderImpl.BaseURI, System.Xml.Schema.SchemaElementDecl.CheckAttributes(), System.Xml.Schema.BaseValidator.checkDatatype, System.Collections.Hashtable.Contains(), System.Xml.Schema.BaseValidator.context, System.Xml.Schema.SchemaDeclBase.Datatype, System.Xml.Schema.SchemaElementDecl.DefaultAttDefs, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.SchemaElementDecl.HasDefaultAttribute, System.Xml.Schema.XsdValidator.HasIdentityConstraints, System.Xml.Schema.SchemaElementDecl.HasRequiredAttribute, System.Xml.Schema.BaseValidator.hasSibling, System.Xml.Schema.BaseValidator.reader, System.Xml.Schema.BaseValidator.SendValidationEvent(), System.Xml.XmlValidatingReaderImpl.StandAlone, System.Xml.Schema.BaseValidator.textString, and System.Xml.Schema.XsdValidator.UnWrapUnion().

Referenced by System.Xml.Schema.XsdValidator.ProcessElement().