日期:2014-05-18  浏览次数:20501 次

关于操作xml,获取特定节点
XML code

<emotions><emotion><phrase>[织]</phrase><type>face</type><url>http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/41/zz2_org.gif</url><is_hot>false</is_hot><is_common>true</is_common><order_number>0</order_number><category/></emotion><emotion><phrase>[神马]</phrase><type>face</type><url>http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/60/horse2_org.gif</url><is_hot>false</is_hot><is_common>true</is_common><order_number>0</order_number><category/></emotion><emotions>



如何获取到phrase为[织]的emotion节点对象

------解决方案--------------------
http://blog.csdn.net/wf520pb/article/details/2644549
------解决方案--------------------
output:

<emotion><phrase>[织]</phrase><type>face</type><url>http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/41/zz2_org.gif</url><is_hot>false</is_hot><is_common>true</is_common><order_number>0</order_number><category /></emotion>