I have a two ways to end a battle, Kill the enemy or tame him. (Also run but then you get no XP) If you kill the enemy the XP works fine, but i could not get it to work to earn xp without the enemy dying. (Taming)
I tried to do it in a battle event that is linked to the tame ability. I turned on get "combatant gains" node but then i get way too much XP.