just go to Google and Type "how to create Sitemap" then boom boom, you will see much more that you can expect to.
You can try check this. It contains an overview about XML sitemap concepts such as create upload submit and ping.