Google 认为站点地图无效,但站点地图索引和站点地图本身都通过了站点地图验证。错误:缺少 XML 标记

发布于 2024-08-10 02:07:01 字数 891 浏览 5 评论 0原文

从谷歌搜索看来,一个旧的谷歌错误又回来了......

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

我的站点地图索引文件和站点地图本身在此处进行验证: http://www.validome.org/google/validate

但 Google 网站站长工具说:

缺少 XML 标记
缺少此必需的标签。请添加并重新提交。

  1. 有人可以确认这个问题是否听起来像是 Google bug 的重现吗?
  2. 是否有解决方法来解决他们的错误,即指定不同的内容可以诱使谷歌接受站点地图?

PS 我无法为您提供实际文件的链接,因为它是客户端,但我正在通过 XMLWriter 生成文件以确保它也是有效的 XML...

更新 实际上我认为它可能有效...他们的报告页面有点奇怪...它显示了一个基于当前日期的页面,但只是注意到在错误下,它说第一次检测到在九月,并且它还报告了 URL 数量在站点地图文件中找到,所以也许错误是旧的......

我将在接下来的几天内观看它,并在我有新内容时再次提供更新。

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 file, so maybe the errors are old...

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稳稳的幸福 2024-08-17 02:07:01

如果不查看 XML,就很难知道问题出在哪里。但是,如果没有看到 XML(并且没有阅读 Google 线程),听起来问题并不是站点地图是无效的 XML,而更像是 Google 的解析器期望的内容超出了严格的范围。 XML 模式需要。

由于如果影响所有站点地图,Google 的自动化测试几乎肯定会发现此问题,因此我猜测您的特定站点地图存在某些问题导致了该问题。

因此,我会考虑尝试通常的简单方法来检测内容问题:删除一半内容并查看问题是否仍然发生。如果是,请尝试删除另一半。如果其中一半没问题,请继续细分,直到找到罪魁祸首。如果两者都失败,请继续将其分成两半,直到内容用完或问题消失,然后找出罪魁祸首模式。

或者,您也可以采取相反的方向:生成一个全新的站点地图文件,用一个虚拟链接填充它,并确保 Google 接受它。假设这种方法有效,请一次将内容添加到一大块,直到它损坏为止,然后找出罪魁祸首。如果不起作用,请尝试从某处复制已知良好的站点地图文件(例如 http:// /www.google.com/hostednews/sitemap_index.xml),删除内容并插入您自己的内容。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文