Reputation: 2247
So a client has this autogenerated sitemap: http://nordwest-najad.se/sitemap.xml And when I try to add it to google webmaster tools I get this error:
Missing XML tag
This required tag is missing. Please add it and resubmit.
The problem is that the xml tag is there and there is nothing wrong with the document.
I have validated the document with these sites:
http://www.validome.org/google/
http://sitemapxml.net/sitemap-validator.php
http://www.xml-sitemaps.com/validate-xml-sitemap.html
And all three sites says that there is no errors.
Upvotes: 1
Views: 4895
Reputation: 11
I fixed it for my case
I checked www.dhakalist.com/sitemap.xml was working but not dhakalist.com/sitemap.xml
so i added these lines in my .htaccess file and problem solved.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Now google is taking sitemap.
Upvotes: 1
Reputation: 810
Google webmaster tool showing right error because you are completely missing your XML tag. Because your starting line
“http://www.google.com/schemas/sitemap/0.9/sitemap.xsd">” have error.
Change it with
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
This is necessary for validating the process that defines the elements and attributes. You can define in your sitemap file according to XML schema guidelines.
Upvotes: 0
Reputation:
From: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=183668
Your Sitemap file must specify the following XML namespace: xmlns="http://www.sitemaps.org/schemas/sitemap/0.9".
Upvotes: 0