首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

关于操作xml,获取特定节点,该怎么处理

2012-04-16 
关于操作xml,获取特定节点XML codeemotionsemotionphrase[织]/phrasetypeface/typeurlhttp:

关于操作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>

热点排行