我的XML文件加载谷歌地图标记时出现问题。这张地图适用于某些邮政编码,但不适用于其他邮政编码。
这些是xml文件。第一个很好用。第二个没有。它给出了一个"XML解析错误:文档元素后的垃圾"错误。
-
www.soshapal.com/maptst.php?lat=45.5001031&lng=-73.57686610000002&半径=5km&country_id=2&city_ id=30§ion_id=2
-
www.soshapal.com/maptst.php?lat=45.4932559&lng=-73.57964709999999&半径=5km&country_id=2&city_ id=30§ion_id=2
有人能帮忙吗?
您的XML创建脚本正试图通知您错误:
<br />
<b>Warning</b>: DOMElement::setAttribute() [<a href='domelement.setattribute'>domelement.setattribute</a>]: string is not in UTF-8 in <b>/home/vozemg0/public_html/soshapal.com/maptst.php</b> on line <b>44</b><br />
<br />
<b>Warning</b>: DOMElement::setAttribute() [<a href='domelement.setattribute'>domelement.setattribute</a>]: string is not in UTF-8 in <b>/home/vozemg0/public_html/soshapal.com/maptst.php</b> on line <b>44</b><br />
<br />
<b>Warning</b>: DOMDocument::saveXML() [<a href='domdocument.savexml'>domdocument.savexml</a>]: output conversion failed due to conv error, bytes 0xE9 0x61 0x6C 0x2C in <b>/home/vozemg0/public_html/soshapal.com/maptst.php</b> on line <b>64</b><br />
这些消息使XML无效。