XML Explained and XML Sitemaps for Google

So what is XML?

XML Explained XML Sitemap for GoogleXML is used to describe data. It focuses on what the data is and not how it looks has with HTML
It’s important that you understand and remember the following…

  • XML is not a replacement language for HTML
  • XML is all about describing data.
  • XML was created purely as a way to structure, store and send information.

If we were building a website for a sweet company, we could define our own XML tags for the different types of services…

<Fudge> Devon Clotted Cream </fudge>
<Chocolate> Bourneville </Chocolate>
<Boiled Sweets> Humbugs </Boiled Sweets>

Depending on how you set up you XML tags, a visitor accessing the web page would be able to sort through the sweets by type or ingredients or category, without having to query a database on the server.

One of the most common use for XML is with producing a site map for Google indexing.

Here is an example:

<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/ sitemap.xsd”>
<url><loc>http://magpieimage.co.uk/</loc><lastmod>2015-10-31T11:00:39+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
<url><loc>http://magpieimage.co.uk/about-us/</loc><lastmod>2015-10-31T11:00:43+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
<url><loc>http://magpieimage.co.uk/blog/</loc><lastmod>2015-10-31T11:00:43+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
<url><loc>http://magpieimage.co.uk/careers/</loc><lastmod>2015-10-31T11:00:43+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
<url><loc>http://magpieimage.co.uk/enquiries/</loc><lastmod>2015-10-31T11:00:43+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
<url><loc>http://magpieimage.co.uk/terms-conditions/</loc><lastmod>2015-10-31T11:00:48+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
<url><loc>http://magpieimage.co.uk/testimonials/</loc><lastmod>2015-10-31T11:00:42+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>
</urlset>

Hope this was of interest to you

Pin It on Pinterest

Share This