def _element_get_id(self, element):
if self._reader._level > <NUM_LIT:1>:<EOL><INDENT>entry_id = element.get('<STR_LIT:id>')<EOL><DEDENT>else:<EOL><INDENT>entry_id = element.get('<STR_LIT:name>')<EOL><DEDENT>return entry_id<EOL>
Get id of reaction or species element.

        In old levels the name is used as the id. This method returns the
        correct attribute depending on the level.