Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sitemap 提交 gsc 提示站点地图可读取,但存在错误:命名空间不正确 #2193

Open
ayonliu opened this issue Dec 3, 2024 · 0 comments

Comments

@ayonliu
Copy link

ayonliu commented Dec 3, 2024

以下是在 google search console 提交 sitemap.xml 后的错误提示:

站点地图可读取,但存在错误
命名空间不正确
您的站点地图或站点地图索引文件未能正确声明命名空间。

示例
第 5行 父标记:url
Content Cell 标记:link

sitemap:
https://liuyong.dev/sitemap.xml

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/TR/xhtml11/xhtml11_schema.html">
<url>
<loc>https://liuyong.dev/javascript-best-practices</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://liuyong.dev/javascript-best-practices?locale=en"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://liuyong.dev/javascript-best-practices?locale=ja"/>
<xhtml:link rel="alternate" hreflang="zh" href="https://liuyong.dev/javascript-best-practices?locale=zh"/>
<xhtml:link rel="alternate" hreflang="zh-TW" href="https://liuyong.dev/javascript-best-practices?locale=zh-TW"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://liuyong.dev/javascript-best-practices"/>
<lastmod>2024-12-03</lastmod>
</url>
<url>
<loc>https://liuyong.dev/search-query-in-elasticsearch-using-golang</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://liuyong.dev/search-query-in-elasticsearch-using-golang?locale=en"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://liuyong.dev/search-query-in-elasticsearch-using-golang?locale=ja"/>
<xhtml:link rel="alternate" hreflang="zh" href="https://liuyong.dev/search-query-in-elasticsearch-using-golang?locale=zh"/>
<xhtml:link rel="alternate" hreflang="zh-TW" href="https://liuyong.dev/search-query-in-elasticsearch-using-golang?locale=zh-TW"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://liuyong.dev/search-query-in-elasticsearch-using-golang"/>
<lastmod>2024-12-03</lastmod>
</url>
<url>
<loc>https://liuyong.dev/change-url-without-refreshing-page</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://liuyong.dev/change-url-without-refreshing-page?locale=en"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://liuyong.dev/change-url-without-refreshing-page?locale=ja"/>
<xhtml:link rel="alternate" hreflang="zh" href="https://liuyong.dev/change-url-without-refreshing-page?locale=zh"/>
<xhtml:link rel="alternate" hreflang="zh-TW" href="https://liuyong.dev/change-url-without-refreshing-page?locale=zh-TW"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://liuyong.dev/change-url-without-refreshing-page"/>
<lastmod>2024-12-03</lastmod>
</url>
<url>
<loc>https://liuyong.dev/DialogContent-requires-a-DialogTitle</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://liuyong.dev/DialogContent-requires-a-DialogTitle?locale=en"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://liuyong.dev/DialogContent-requires-a-DialogTitle?locale=ja"/>
<xhtml:link rel="alternate" hreflang="zh" href="https://liuyong.dev/DialogContent-requires-a-DialogTitle?locale=zh"/>
<xhtml:link rel="alternate" hreflang="zh-TW" href="https://liuyong.dev/DialogContent-requires-a-DialogTitle?locale=zh-TW"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://liuyong.dev/DialogContent-requires-a-DialogTitle"/>
<lastmod>2024-12-03</lastmod>
</url>
</urlset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant