Variant XMLElement::GetVariantValue(VariantType type) const { Variant ret; if (type == VAR_RESOURCEREF) ret = GetResourceRef(); else if (type == VAR_RESOURCEREFLIST) ret = GetResourceRefList(); else if (type == VAR_VARIANTVECTOR) ret = GetVariantVector(); else if (type == VAR_VARIANTMAP) ret = GetVariantMap(); else ret.FromString(type, GetAttributeCString("value")); return ret; }
ea::string XMLElement::GetAttribute(const char* name) const { return ea::string(GetAttributeCString(name)); }
ea::string XMLElement::GetAttribute(const ea::string& name) const { return ea::string(GetAttributeCString(name.c_str())); }
String XMLElement::GetAttribute(const String& name) const { return String(GetAttributeCString(name.CString())); }