xLog icon indicating copy to clipboard operation
xLog copied to clipboard

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

Open ayonliu opened this issue 1 year ago • 0 comments

以下是在 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>

ayonliu avatar Dec 03 '24 01:12 ayonliu