XML are files that help an URL index on a search engine (i.e., the website will turn up on the results page). Sitemap is a file where the web pages of our website are listed out. This informs Google and other search engines about your content.