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"/>

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


你可能感兴趣的:(Error parsing XML: junk after document element)