| « Sitemap index tags | Sitemap index validation » |
Sitemap validation
The following XML schema defines the elements and attributes that can appear in your Sitemap file. You can download this schema from the link below:
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
There are a number of tools available to help you validate the structure of your Sitemap based on this schema. You can find a list of XML-related tools at each of the following locations:
In order to validate your Sitemap file against a schema, the XML file will need additional headers as shown below.
XML:
<?xml version='1.0' encoding='UTF-8'?> | |
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 | |
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" | |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
... | |
</url> | |
</urlset> |
Feedback awaiting moderation
This post has 3 feedbacks awaiting moderation...