Creating Sitemap for an eCommerce website helps in indexing all the product pages by search engine crawlers. There are situations that sitemap should be created for multiple sites, we can achieve this by adding factory=true and bind methods in schedulers.
Let's see how to create sitemap from an product index file using factory.
- Create a service config file
- Create a scheduler
- Create sitemap read and write service interface and implementation
- Create models for parsing the index xml file