Hi Ouail,
I haven't come across this issue till i saw this post.
Looked for the solution and found that, to Remove this spaces you must download your XML file with the FILETYPE = 'ASC' or 'DAT'.
If i am not wrong, you had downloaded this file with the FILETYPE = 'BIN'.
So Please check your FILETYPE used in the GUI_DOWNLOAD.
Regards,
AyyamPerumal