Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复无法解析<ExtAttr><Item>....</Item></ExtAttr>这种节点数据,如: #1777

Merged
merged 1 commit into from
Sep 24, 2020

Commits on Sep 24, 2020

  1. 修复无法解析<ExtAttr><Item>....</Item></ExtAttr>这种节点数据,如:

    String xml = "<xml><ToUserName><![CDATA[ww3fb6dc50e568348a]]></ToUserName><FromUserName><![CDATA[sys]]></FromUserName><CreateTime>1600855248</CreateTime><MsgType><![CDATA[event]]></MsgType><Event><![CDATA[change_contact]]></Event><ChangeType><![CDATA[update_user]]></ChangeType><UserID><![CDATA[1000100010001]]></UserID><Gender>2</Gender><ExtAttr><Item><Name><![CDATA[工号]]></Name><Value><![CDATA[10007000000]]></Value><Type>0</Type><Text><Value><![CDATA[10007000000]]></Value></Text></Item></ExtAttr><Alias><![CDATA[xiaoqi]]></Alias></xml>";
    解析后: ExtAttr== null
    修复后:ExtAttr={Item=[{Type=0, Value=10007000000, Text={Value=[10007000000]}, Name=工号}]}
    giveme01 committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    75c63a2 View commit details
    Browse the repository at this point in the history