sitemap - What is urlset?

Posted on 2007-10-03
Last Modified: 2008-12-15
Creating a sitemap.

Checked Google:
  <?xml version="1.0" encoding="UTF-8"?>
  < urlset xmlns="">
   < url>
    < loc></loc>
    < lastmod>2005-01-01</lastmod>
    < changefreq>monthly</changefreq>
    < priority>0.8</priority>

what is the following?:
 < urlset xmlns="">

is that where the sitemap is located on my site or?

your help much appreciated
Question by:ost87
    LVL 22

    Expert Comment


    urlset: Encapsulates the file and references the current protocol standard.

    Author Comment


    what does that mean?
    LVL 22

    Expert Comment

    The first (root) element is urlset and within it, each url is defined by an <url> element.
    LVL 22

    Expert Comment


    URLSet is an abstract class, but its add method is concrete. It possibly writes the URL to a logfile, and if the URLSet is allowed to grow, calls  addInner.
    LVL 22

    Accepted Solution


    Usually, sitemaps, use few details as meta data such as urlset which holds the whole set of urls available on the map, url which holds the details of each url in part, loc which represents the location of the url (the url itself), lastmod which should reflect the last date this page was updated/modified, priority which, in your opinion, represents the importance of that page (from 0.1 the lowest to 1.0 the highest rank) relative to the rest of your content and changefreq which should output how frequently that page is changed (Always, Hourly, Daily, Weekly, Monthly, Yearly, Never). The urlset, url and loc tags are required while the rest presented above are optional. All data values must be entity-escaped and the file itself must be UTF-8 encoded.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to dynamically set the form action using jQuery.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now