System.Xml.Schema.XmlSchemaValidator.ProcessEntity C# (CSharp) 메소드

ProcessEntity() 개인적인 메소드

private ProcessEntity ( string name ) : void
name string
리턴 void
        private void ProcessEntity(string name)
        {
            if (!_checkEntity)
            {
                return;
            }
            IDtdEntityInfo entityInfo = null;
            if (_dtdSchemaInfo != null)
            {
                entityInfo = _dtdSchemaInfo.LookupEntity(name);
            }
            if (entityInfo == null)
            {
                // validation error, see xml spec [68]
                SendValidationEvent(SR.Sch_UndeclaredEntity, name);
            }
            else if (entityInfo.IsUnparsedEntity)
            {
                // validation error, see xml spec [68]
                SendValidationEvent(SR.Sch_UnparsedEntityRef, name);
            }
        }