Change save function

fprintf() is not correct now.
Merge pull request #1778 from tao-s/fix-Incorrect-sitemap.xml-save-process

Fix: Incorrect sitemap.xml save process.