<?xml version="1.0" encoding="UTF-8"?>
<urlsetxmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/">
<url>
<loc>http://www.baidusitemap.com</loc>
<mobile:mobile type="mobile" xmlns:mobile=":"/>
<lastmod>2018/6/29 16:08:18</lastmod>
<changefreq>daily</changefreq>
</url>
</url>
出现这种现象是因为我们给父节点添加了属性:
xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"
但是没有给子节点设置xmlns:mobile=""属性,所以我给所有子元素都添加该属性值之后,这种现象就去掉了!虽然这方法有点笨