And there may be a way to do `lambda e: self['rights'] = e.text` and `lookuptable[element.tag](element)`