Create valid sitemaps using your own functions