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

◆ ProcessEntity() [2/2]

static void System.Xml.Schema.BaseValidator.ProcessEntity ( SchemaInfo sinfo,
string name,
object sender,
ValidationEventHandler eventhandler,
string baseUri,
int lineNumber,
int linePosition )
inlinestaticprotectedinherited

Definition at line 262 of file BaseValidator.cs.

263 {
264 XmlSchemaException ex = null;
265 if (!sinfo.GeneralEntities.TryGetValue(new XmlQualifiedName(name), out var value))
266 {
267 ex = new XmlSchemaException(System.SR.Sch_UndeclaredEntity, name, baseUri, lineNumber, linePosition);
268 }
269 else if (value.NData.IsEmpty)
270 {
271 ex = new XmlSchemaException(System.SR.Sch_UnparsedEntityRef, name, baseUri, lineNumber, linePosition);
272 }
273 if (ex != null)
274 {
275 if (eventhandler == null)
276 {
277 throw ex;
278 }
279 eventhandler(sender, new ValidationEventArgs(ex));
280 }
281 }
static string Sch_UndeclaredEntity
Definition SR.cs:748
static string Sch_UnparsedEntityRef
Definition SR.cs:750
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Sch_UndeclaredEntity, System.SR.Sch_UnparsedEntityRef, and System.value.

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