Solution: WordPress Fatal Error when importing XML file
But if XML file is too large, you may encounter some error message like:
If any particular file is producing such error message, just add below code at top of that page.
<?php set_time_limit (0); ?>
Once you have successfully imported the XML file, delete those codes.