The ticket may be similar to #3178, but it is not, because we control the WordPress process.
Importing a wordpress.xml file to another wordpress may fail due to an upload_max_filesize and post_max_size directives in php.ini. You know that many web hosts allow only an upload_max_filesize of 2 MB. Though, compression is a great help.
A simple solution is, on one side, offering an option to compress in GZ format the xml file when exporting, and, on the other side, the WordPress importer will accept the compressed file.
And, when possible, WordPress importer should accept compressed files from other formats and blogs.
Just say you only accept one compression format (gz, zip, etc) and the user will comply.