always ignore Caps xml elements.

This commit is contained in:
2020-09-18 19:48:47 +08:00
parent c65a3a088f
commit db0d47fc13

View File

@@ -8,7 +8,7 @@ namespace hgl
{
if(!ec)return(false);
const UTF8String &name=ec->GetElementName();
const UTF8String &name=ec->GetElementName().ToLowerCase();
if(name.IsEmpty())return(false);
if(ecs_map.KeyExist(name))return(false);
@@ -23,7 +23,9 @@ namespace hgl
ElementCreater *ec;
if(!ecs_map.Get(sub_name,ec))
const UTF8String &sn=sub_name.ToLowerCase();
if(!ecs_map.Get(sn,ec))
return(nullptr);
return ec;