If a character died, and then you did something to get XP (kill enemy for example), the dead character does not get that XP.