<?xml version='1.0' encoding='UTF-8'?><ROOT><HEAD><SEQNO>058312aa-a21d-4cf2-95fd-6f102693f1b5</SEQNO><USERNAME>CCH</USERNAME><PASSWORD>CCHPWD</PASSWORD><SERVICECODE>1001</SERVICECODE><SENDTIME>20170227152728</SENDTIME></HEAD><BODY><NODE>PW003005</NODE><CONDITIONFLAG>CPB00003</CONDITIONFLAG><CONTACTTIME>2017-02-27 15:27:28</CONTACTTIME><PHONE>NULL</PHONE><COMCODE>pw.sinosig.com</COMCODE><ATTENDID>URL</ATTENDID><ATTENDNAME>http://127.0.0.1:8081/WxEngine/mobilePage/ygbx_service_hall/ygbx_personal_center_yh.html</ATTENDNAME><SSID>SYS00012</SSID><PARTYNAME>李佰军</PARTYNAME><ID>232303199105223819</ID><IDTYPE>10</IDTYPE><POLICYNO>NULL</POLICYNO><WORKNO>NULL</WORKNO><PRODUCT>NULL</PRODUCT><LICENSENO>NULL</LICENSENO><CONTACT>9402291§o4NTEv1Np68nQ_SXSYWXEmUHpJpA§https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx518f6ac1c229a2b8&redirect_uri=http%3A%2F%2Fmicromsg.sinosig.com%2Fjt.html%3FREDIRECTURL%3Dhttp%253A%252F%252Fmclub.sinosig.com%252Fcarvip%252Fcarvip%21list.action%253Fcarvip_chl%253D01%2526WT.mc_id%253Dcx_ydgw_jfsc%2526openId%253D%2523OPEN_ID%2523&response_type=code&scope=snsapi_base&state=md5sign#wechat_redirect</CONTACT></BODY></ROOT>
请教一下,这是个xml报文,
子节点CONTACT中用§符号拼接的信息
最后拼接了个授权链接
然后xml无法解析
有人知道怎么回事不?
解决了 因为链接中含有特殊字符& 导致无法解析 传输时编码一次就可以了