As a general requirement some/almost all of our clients require the website’s sitemap to publish automatically whenever a page gets created and published. Generally we implement this functionality through the event system in Tridion.
There may be some pros and cons with this approach or alternative approaches to this problem.
What are the best practices for managing a website’s sitemap along with their pros and cons?
Alternative approaches with code snippets will be highly beneficial and appreciated.