What is wrong with my sitemap.xml?

tommy_mac501

New Member
I used Googles Sitemap creator to make my sitemap.xml file, and now the sitemap tool keeps telling me there are 2 errors<br />
<br />
Line2 Invalid XML attribute<br />
The XML attribute of this tag was not recognized. Please fix it and resubmit. <br />
Problem detected on urlset<br />
Attribute schemaLocation<br />
<br />
Line 2 Incorrect namespace<br />
Your Sitemap or Sitemap index file doesn't properly declare the namespace.<br />
Problem detected on urlset<br />
<br />
Now, like I said, "googles" tool made the thing.. why would there be errors??<br />
 

richarduie

New Member
Without seeing your XML, I can't diagnose the problem with great certainty. Seems the complaint is about the xmlns (XML namespace attribute) for the schema's location of your urlset tag. Here's a properly declared sample (leading dots just keep indentation, since Y!A deletes leading whitespace - they are not valid)<?xml version = "1.0" encoding = "UTF-8"?><urlset xmlns= "http//www.sitemaps.org/schemas/sitemap/0.9">
....<url>
........<loc> http//home.comcast.net/~richarduie/index.html </loc>
........<lastmod> 2008-06-05 </lastmod>
........<changefreq> monthly </changefreq>
........<priority> 0.9 </priority>
....</url></urlset>

Why Google's tools would incorrectly specify the value, I have no idea. I compose my own.

Added the xmlns attribute value that got truncated is

http// www. sitemaps. org/ schemas/ sitemap/ 0.9

without the spaces.
 
Top