2

我在将这个主 XML 提交给谷歌时遇到了问题,其中 2 个 sub-sitemap.xml 完好无损。

当我将它提交到搜索控制台进行索引时,它给了我这个错误:

错误 XML 标记无效 无法识别此标记。请修复并重新提交。父标签:urlset 标签:站点地图

我的mastersitemap.xml如下,谢谢大家的帮助~

    <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.domain.domain/</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <sitemap>
    <loc>https://www.domain.domain/sitemap5-0.xml</loc>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
  </sitemap>
  <sitemap>
    <loc>https://www.domain.domain/sitemap5-1.xml</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </sitemap>
</urlset>
4

1 回答 1

1

您需要删除您的sitemap元素url

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
    <loc>https://www.domain.domain/</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://www.domain.domain/sitemap5-0.xml</loc>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.domain.domain/sitemap5-1.xml</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
</urlset> 

此站点地图有效。

于 2017-11-29T18:58:28.880 回答