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

◆ CheckXmlSpace()

void System.Xml.Schema.SchemaAttDef.CheckXmlSpace ( IValidationEventHandling validationEventHandling)
inlinepackage

Definition at line 167 of file SchemaAttDef.cs.

168 {
169 if (datatype.TokenizedType == XmlTokenizedType.ENUMERATION && values != null && values.Count <= 2)
170 {
171 string text = values[0].ToString();
172 if (values.Count == 2)
173 {
174 string text2 = values[1].ToString();
175 if ((text == "default" || text2 == "default") && (text == "preserve" || text2 == "preserve"))
176 {
177 return;
178 }
179 }
180 else if (text == "default" || text == "preserve")
181 {
182 return;
183 }
184 }
185 validationEventHandling.SendEvent(new XmlSchemaException(System.SR.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
186 }
static string Sch_XmlSpace
Definition SR.cs:574
Definition SR.cs:7

References System.Collections.Generic.List< T >.Count, System.Xml.Schema.SchemaDeclBase.datatype, System.Xml.Dictionary, System.SR.Sch_XmlSpace, System.text, System.Xml.Schema.XmlSchemaDatatype.TokenizedType, and System.Xml.Schema.SchemaDeclBase.values.