iq 格式分析

po iq

 {type:1 name:iq xml:"<iq xmlns="jabber:client" to="testhjy@ecouser.net/ICB6D63" type="set" id="88" from="001400005547bb014e45@gcb9.ecorobot.net/atom">

      <query xmlns="com:ctl"><ctl td="DeviceInfo"> <MID>001400005547BB014E45@gcb9.ecorobot.net/atom</MID><class>Deepo9</class><chn v="xb"></chn></ctl></query>

</iq>"}

po queryEle

GDataXMLElement 0x144d476e0: {type:1 name:query xml:"<query xmlns="com:ctl"><ctl td="DeviceInfo"><MID>001400005547BB014E45@gcb9.ecorobot.net/atom</MID><class>Deepo9</class><chn v="xb"></chn></ctl></query>"}

(lldb) po ctlEle

GDataXMLElement 0x144dc5fc0: {type:1 name:ctl xml:"<ctl td="DeviceInfo"><MID>001400005547BB014E45@gcb9.ecorobot.net/atom</MID><class>Deepo9</class><chn v="xb"></chn></ctl>"}

原文地址:https://www.cnblogs.com/developer-qin/p/5070530.html