开发者

Google thinks sitemap is invalid but both sitemap index and sitemap itself pass sitemap validation. Error: Missing XML tag

From Googling around it looks like an old Google bug has come back....

http://groups.google.com/group/Google_Webmaster_Help-Tools/browse_thread/thread/4e43c2efecb881cf?pli=1

My sitemap index file and sitemap itself validates here: http://www.validome.org/google/validate

but Google Webmaster Tools says:

Missing XML tag

This required tag is missing. Please add it and resubmit.

  1. Can someone confirm if this issue sounds like a recurrence of the Google bug?
  2. Is there a workaround to their bug where specifying something differently can coax Google into accepting the sitemap?

P.S. I can't give you a link to the actual file because it's a client, but I'm generating the file through XMLWriter to make sure it's valid XML as well...

UPDATE Actually I think it might have worked...their reporting page is a little weird...it shows a page based on current date but just noticed that under the error, it says first detected in September, and it also reports number of URLs found in sitemap fil开发者_开发知识库e, so maybe the errors are old...

I'll watch it next couple days and provide an update again when I ahve something new.


Without seeing the XML it's hard to know what the problem is. But, without seeing the XML (and from reading the Google threads), it sounds like the issue is not that the sitemap is invalid XML and more like the problem is that Google's parser is expecting something beyond what's strictly required by the XML schema.

Since Google's automated tests would almost certainly have caught this problem if it affected all sitemaps, I'd guess that there is something about your particular sitemap which is causing the problem.

So I'd consider trying the usual simple approach to detecting content problems: delete half the content and see if the problem still happens. If it does, try deleting the other half. If one of the halves goes through OK, keep subdividing until you've found the culprit. If both fail, keep dividing one half until you either run out of content or the problem goes away, and then identify the culprit pattern.

Or, alternatively, you could go in the opposite direction: generate a brand-new sitemap file, fill it with one dummy link, and make sure Google accepts it. Assuming that works, add your content in one chunk at a time until it breaks, and then identify the culprit. If it doesn't work, try copying a known-good sitemap file from somewhere (e.g. http://www.google.com/hostednews/sitemap_index.xml), stipping out the content, and inserting your own.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜