Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1432
  • Last Modified:

sitemap - What is urlset?

Creating a sitemap.

Checked Google:
  <?xml version="1.0" encoding="UTF-8"?>
  < urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   < url>
    < loc>http://www.example.com/</loc>
    < lastmod>2005-01-01</lastmod>
    < changefreq>monthly</changefreq>
    < priority>0.8</priority>
   </url>  
  </urlset>


what is the following?:
 < urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

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

your help much appreciated
0
ost87
Asked:
ost87
  • 4
1 Solution
 
jvuzCommented:
http://www.sitemaps.org/protocol.php

urlset: Encapsulates the file and references the current protocol standard.
0
 
ost87Author Commented:
ok

what does that mean?
0
 
jvuzCommented:
The first (root) element is urlset and within it, each url is defined by an <url> element.
0
 
jvuzCommented:
http://mercator.comm.nsdlib.org/Mercator/urlset/urlset.html

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.
0
 
jvuzCommented:
http://www.cynthiaknouft.com/2007/09/02/beginners-guide-to-dynamic-sitemaps/

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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now