Last post Dec 18, 2018 06:50 AM by Ackerly Xu
Dec 16, 2018 08:40 AM|qsoft_developer|LINK
I am a bit confused. I just finished writing my first ASP.NET website and I would like to add a sitemap.
When I wrote HTML websites in the past, I used online generators to create the sitemap.xml file.
Now I can see I have an option to create WEB.sitemap file to the project.
In addition, I can see I have an option to add sitemap.xsd file to the project.
What are the difference and best practice to add a simple sitemap to my ASP.MET website?
Dec 17, 2018 02:13 AM|Ackerly Xu|LINK
Sitemap.xml lists the URLs in the website and other metadata about each URL (last updated). Time, how often, and how important it is to other URLs on the site.
Simple, we can understand that sitemap.xml is a file for the search engine, including URL, time, importance and other parameters.It is good for SEO.
Web.sitemap is usually used as a datasource of a webform control to generate navigation for users of the website.
Dec 17, 2018 07:50 AM|qsoft_developer|LINK
Thanks for your reply.
Can you please explain how does sitemap.xsd fit in all of this? what is the use of the file? and do I have to add it to my ASP.NET website?
Dec 18, 2018 06:50 AM|Ackerly Xu|LINK
sitemap.xsd is used to specify the structure of the sitemap.xml.
In the sitemap.xml, you could find xsi:schemaLoaction which is used to specify which sitemap.xsd the sitemap.xml uses.
If you write a wrong structure of sitemap.xml, the xsd could find the error and prompt you.
So, only if you use sitemap.xml, you don't need sitemap.xsd.