Sitemap in asp.net RRS feed

  • Question

  • User1310055179 posted


    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 <g class="gr_ gr_334 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="334" data-gr-id="334">WEB.sitemap</g> file to the project. 

    In addition, I can see I have an option to add <g class="gr_ gr_366 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="366" data-gr-id="366">sitemap</g>.xsd file to the project.

    What are the difference and best practice to add a simple sitemap to my <g class="gr_ gr_419 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation multiReplace" id="419" data-gr-id="419">ASP.</g>MET website?

    Sunday, December 16, 2018 8:40 AM

All replies

  • User-893317190 posted

    Hi qsoft_developer,

    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.


    Best regards,

    Ackerly Xu

    Monday, December 17, 2018 2:13 AM
  • User1310055179 posted

    Thanks for your reply.

    Can you please explain how does sitemap.<g class="gr_ gr_30 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="30" data-gr-id="30"><g class="gr_ gr_55 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="55" data-gr-id="55">xsd</g></g> fit in all of this? what is the use of the file? and do I have to add it to my ASP.NET website?


    Monday, December 17, 2018 7:50 AM
  • User-893317190 posted

    Hi qsoft_developer,

    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.

    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
       xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

    So, only if you use sitemap.xml, you don't need sitemap.xsd.

    Best regards,

    Ackerly Xu

    Tuesday, December 18, 2018 6:50 AM