我的前两行sitemap.xml代码是:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">关键字xmlns有什么作用?它是用来做什么的?我应该在谷歌中输入什么来建立索引。
另外,我在验证结果中得到警告:"text/xml“文档缺少"charset”属性。
这是什么意思,以及如何纠正它?
发布于 2013-02-21 14:38:55
我相信您用来验证站点地图的站点使用的是已弃用的站点地图架构。
<?xml version="1.0" encoding="utf-8" ?>
<sitemap xml:base="http://www.barbrastreisand.com/" lang="en" type="text/html" charset="iso-8859-1" xmlns="http://standard-sitemap.org/2007/ns"></sitemap>最新的版本使用了:
<?xml version="1.0" encoding="utf-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"></urlset>https://stackoverflow.com/questions/14677776
复制相似问题