New/better version of EleAttVal