XML or Extensible Markup Language is primarily created to facilitate the functionality of the search engines.
A good XML sitemap informs the search engines about the number of pages present on a specific website, the frequency of their updates and the time of the last modifications performed on them, which helps in proper indexing of the website by the search engines.