XML Sitemap GeneratorFree Online XML Sitemap Generator

Definitions of XML sitemap tags

Creating an XML sitemap is an important part of any website building/improvements project.  It tells search engines where to look to find pages to index and improves the SEO (Search Engine Optimization) of the site – so that it finished higher in the search engine rankings for keywords.

In the majority of cases it is easier, quicker and more efficient to use an online tool to create a sitemap for you to submit to the search engines.  But some people like to understand what goes on behind the scenes of such tools, or would like to do it themselves.  Perfectly understandable feelings and a method that will suit certain people and sites.

To that end we have created below a definition of the important XML sitemap tags for you below.  Good luck in your endeavors!

Creating an XML Sitemap

Remember that it is important that you do all the creation in a plain .txt file, as the formatting form more 'advanced' word processing extensions will interfere with the coding.

The first thing that you need to do is define the type of file it is (XML). To do that you need to write in

<?xml version='1.0' encoding='UTF-8'?>

After you have done that it is important to let the search engine spiders understand that this file is a sitemap. 

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

This tells them that it is a sitemap that follows the sitemap.org 0.9 specifications (which is what both Google and Yahoo use).

Once you have done that you need to enter the information for every page on the site that you want the search engine to index, which means pages that will appear in the search results of the search engines when a keyword has been used.

To do that you need to set up a template like this for every page

<url>
<loc>http://www.yoursite.com/</loc>
<lastmod>2009-04-27</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>

Definition of the XML sitemap Tags

The <url> tag is, same as with html, showing the search engine spider the url that it should follow, it shows to it that following that tag, and before the </url> tag there is a link to a page for it to index.

The <loc> tag gives the specific location (website page) for the spider to go to and index.

The <lastmod> tag is a tag that informs the spider when the page was last modified so that it knows whether alterations have been made to the page since its last visit – it relies on this to see whether it needs to reindex any changes.  It is essential that you use the date format 'yyyy-mm-dd' when creating this tag.

The <changefreq> tag tells the spider how often you change the text and how often it should therefore check back.  This doesn't guarantee that the spider will come back at that interval, but does help encourage it.

The <priority> tag is a tag that lets the spider know how important the page is to you.  It is a relative value between 0.0 and 1.0 with 0.5 being the default value.  Because this value is relative assigning all pages high numbers won't help you at all.

And remember when you have finished coding ALL your pages make sure that you close it off with the </urlset> tag which tells the spider that it is the end of the sitemap.

 

© xSitemap.com 2009 - All Rights Reserved


More XML sitemap articles

What Is An XML Sitemap?

Anyone who has set up a web page and looked into any sort of SEO (Search Engine Optimization) at all will have heard people say that it is important to get an XML Sitemap.  What is far rarer is having someone explain to you what one actually is.  It's all well and good knowing you need one, but what on Earth is it that you need?

 

Value of an XML sitemap in SEO

Search Engine Optimization (SEO) is a vital tool in the armory of anyone who is looking to get the best possible return on their website – whether that is making money or simply getting as many people reading the page as possible.  SEO is big business and hugely important to the success of any site.

 

How to submit your XML sitemap to Google & Yahoo

One of the major reasons for creating an XML sitemap is to help with SEO (Search Engine Optimization, and the best way to do this is to submit the sitemap to the search engines.  The biggest two to focus on are of course Google and Yahoo, as they are the two that will send you easily the majority of your traffic.

 

Definitions of XML sitemap tags

Creating an XML sitemap is an important part of any website building/improvements project.  It tells search engines where to look to find pages to index and improves the SEO (Search Engine Optimization) of the site – so that it finished higher in the search engine rankings for keywords.