1.生成如下的xml文件与80cms生成的xml文件是一样的(具体实现方法在下面) :
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.demo7.com/f7ae3/1.html</loc>
<priority>0.6</priority>
<lastmod>2020-09-28</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.demo7.com/f7ae3/2.html</loc>
<priority>0.6</priority>
<lastmod>2017-07-21</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.demo7.com/f7ae3/3.html</loc>
<priority>0.6</priority>
<lastmod>2020-09-28</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.demo7.com/f7ae3/4.html</loc>
<priority>0.6</priority>
<lastmod>2020-09-28&