XML分析错误:产品_id=1100的格式不正确

XML分析错误:产品_id=1100的格式不正确,xml,Xml,Im获取错误XML解析错误:的格式不正确 <loc>http://localhost/index.php?route=product/product&product_id=8111</loc> http://localhost/index.php?route=product/product&product_id=8111 为什么第一个不是很好,但是第二个很好?如何解决此问题 <?xml version="1.0" encoding="UTF-8"?>

Im获取错误XML解析错误:的格式不正确

<loc>http://localhost/index.php?route=product/product&product_id=8111</loc>
http://localhost/index.php?route=product/product&product_id=8111
为什么第一个不是很好,但是第二个很好?如何解决此问题

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>http://localhost/index.php?route=product/product&product_id=8111</loc>
<lastmod>2019-05-13 13:07:07</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>http://localhost/new_product_test-1</loc>
<lastmod>2019-03-14 14:46:44</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>

http://localhost/index.php?route=product/product&product_id=8111
2019-05-13 13:07:07
每周的
0.7
http://localhost/new_product_test-1
2019-03-14 14:46:44
每周的
0.7

这是不正确的,因为你没有逃脱符号

XML解析器认为您正在引入一个实体,但没有这样的实体

符号应像
那样编码&

http://localhost/index.php?route=product/product&amp;product_id=8111
你可以使用在线工具,比如which,告诉你到底是什么问题


结束语
也丢失了。

您所说的“有效”是什么意思?谁说这是无效的?在什么情况下?@Lightness在轨道上比赛我更新了我的站点地图页面上显示的主题错误
http://localhost/index.php?route=product/product&amp;product_id=8111