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

◆ GenEntity()

bool System.Xml.Schema.DtdValidator.GenEntity ( XmlQualifiedName qname)
inlineprivate

Definition at line 411 of file DtdValidator.cs.

412 {
413 string name = qname.Name;
414 if (name[0] == '#')
415 {
416 return false;
417 }
418 if (SchemaEntity.IsPredefinedEntity(name))
419 {
420 return false;
421 }
422 SchemaEntity entity = GetEntity(qname, fParameterEntity: false);
423 if (entity == null)
424 {
426 }
427 if (!entity.NData.IsEmpty)
428 {
430 }
431 if (reader.StandAlone && entity.DeclaredInExternal)
432 {
434 }
435 return true;
436 }
static string Sch_StandAlone
Definition SR.cs:590
static string Xml_UndeclaredEntity
Definition SR.cs:120
static string Xml_UnparsedEntityRef
Definition SR.cs:128
Definition SR.cs:7
void SendValidationEvent(string code)
XmlValidatingReaderImpl reader
SchemaEntity GetEntity(XmlQualifiedName qname, bool fParameterEntity)

References System.Xml.Schema.SchemaEntity.DeclaredInExternal, System.Xml.Dictionary, System.Xml.Schema.DtdValidator.GetEntity(), System.Xml.XmlQualifiedName.IsEmpty, System.Xml.Schema.SchemaEntity.IsPredefinedEntity(), System.Xml.XmlQualifiedName.Name, System.Xml.Schema.SchemaEntity.NData, System.Xml.Schema.BaseValidator.reader, System.SR.Sch_StandAlone, System.Xml.Schema.BaseValidator.SendValidationEvent(), System.Xml.XmlValidatingReaderImpl.StandAlone, System.SR.Xml_UndeclaredEntity, System.SR.Xml_UnparsedEntityRef, and System.Xml.XmlException.

Referenced by System.Xml.Schema.DtdValidator.Validate().