当我向Google网站站长工具提交站点地图时,我一直收到“不支持的文件格式”错误。我总是使用hwww.xml-sitemaps.com来创建我的站点地图,我之前从未遇到过任何问题,所以我不知道如何解决这个问题。非常感谢您的建议!
以下是我从网站站长工具中获得的具体错误:
XML解析错误:文档元素之后的垃圾 地点:http://www.joshgoodman.com/sitemap.xml 第3行,第1列:http://www.joshgoodman.com/main.php每周0.85
以下是我的站点地图的开头和结尾代码:
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url>
<loc>http://www.joshgoodman.com/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/main.php</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/blog/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/faqs.html</loc>
<lastmod>2014-05-20T01:13:17+00:00</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/il-cielo-wedding.html</loc>
<lastmod>2014-05-20T01:13:19+00:00</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/inland-empire-wedding-photographer.html</loc>
<lastmod>2014-05-20T01:13:19+00:00</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/palm-springs-wedding-photographer.html</loc>
<lastmod>2014-05-20T01:13:28+00:00</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/blog/niko-and-joshuas-sls-hotel-wedding/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/blog/ashley-and-walters-four-seasons-il-cielo-wedding/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/blog/four-seasons-beverly-hills-wedding-emilia-and-anthony/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/oviatt-penthouse-wedding.html</loc>
<lastmod>2014-05-20T01:13:28+00:00</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/blog/get-out-and-vote/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.joshgoodman.com/blog/?s=powershot&searchsubmit=Search</loc>
<changefreq>weekly</changefreq>
</url>
</urlset>
答案 0 :(得分:0)
您错过了开始<urlset>
标记。您网站上的 sitemap.xml 与您在问题中指定的 XML站点地图不同。