How to make XML sitemap to work after transfer from localhost?
Did you define base_url in settings.php file? Try to set your current website address for base_url, then clear cache and run cron to generate sitemap. If this doesn't work, backup your database and run SQL query as:

UPDATE variable SET value='s:99:"http://example.com";' WHERE name='xmlsitemap_base_url';


Where the 99 is the length of your domain (including the http and all) and example.com is your domain.