Remove unnecessary slice from generateXML for blocks function

Forgot to update the pull request from Toby's feedback.