Ensure there's a new line at the end of recorded XML files

Everything is in the title. This PR is meant to ensure there's one (and not more) blank line at the end of every recorded files to avoid warnings in git and comply to standards.