def _get_enum(self, source, bitarray):
raw_value = self._get_raw(source, bitarray)<EOL>value_desc = source.find('<STR_LIT>', {'<STR_LIT:value>': str(raw_value)}) or self._get_rangeitem(source, raw_value)<EOL>return {<EOL>source['<STR_LIT>']: {<EOL>'<STR_LIT:description>': source.get('<STR_LIT:description>'),<EOL>'<STR_LIT>': source.get('<STR_LIT>', '<STR_LIT>'),<EOL>'<STR_LIT:value>': value_desc['<STR_LIT:description>'].format(value=raw_value),<EOL>'<STR_LIT>': raw_value,<EOL>}<EOL>}<EOL>
Get enum value, based on the data in XML