Error parsing XML: junk after document element

前端之家收集整理的这篇文章主要介绍了Error parsing XML: junk after document element前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

sax解析回传数据时,出现Error parsing XML: junk after document element 错误

<notify func="NewDevice" macaddress="00124B0004271B65" type="511" id="67"/>

<notify func="NewDevice" macaddress="00124B0004271B65" type="511" id="68"/>

<notify func="NewDevice" macaddress="00124B0004271B65" type="511" id="69"/>

需要增加一个根节点才能解析;

原文链接:https://www.f2er.com/xml/296553.html

猜你在找的XML相关文章