Disable XP from mob spawners and trial spawners.
Even if you build a trap, monsters that spawn from a spawner will not drop experience points.