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

◆ ValidateIdAttribute()

void System.Xml.Schema.SchemaCollectionPreprocessor.ValidateIdAttribute ( XmlSchemaObject xso)
inlineprivate

Definition at line 1614 of file SchemaCollectionPreprocessor.cs.

1615 {
1616 if (xso.IdAttribute == null)
1617 {
1618 return;
1619 }
1620 try
1621 {
1622 xso.IdAttribute = base.NameTable.Add(XmlConvert.VerifyNCName(xso.IdAttribute));
1623 if (_schema.Ids[xso.IdAttribute] != null)
1624 {
1626 }
1627 else
1628 {
1629 _schema.Ids.Add(xso.IdAttribute, xso);
1630 }
1631 }
1632 catch (Exception ex)
1633 {
1635 }
1636 }
void Add(TKey key, TValue value)
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
static string Sch_InvalidIdAttribute
Definition SR.cs:1136
static string Sch_DupIdAttribute
Definition SR.cs:934
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)

References System.Xml.Schema.SchemaCollectionPreprocessor._schema, System.Collections.Hashtable.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Dictionary, System.Xml.Schema.XmlSchemaObject.IdAttribute, System.Xml.Schema.XmlSchema.Ids, System.SR.Sch_DupIdAttribute, System.SR.Sch_InvalidIdAttribute, System.Xml.Schema.BaseProcessor.SendValidationEvent(), and System.Xml.XmlConvert.VerifyNCName().

Referenced by System.Xml.Schema.SchemaCollectionPreprocessor.Execute(), System.Xml.Schema.SchemaCollectionPreprocessor.Preprocess(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttribute(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttributeGroup(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttributes(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessComplexType(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessElement(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessGroup(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessIdentityConstraint(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessLocalAttribute(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessLocalElement(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessNotation(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessParticle(), and System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessSimpleType().