62,046
社区成员
发帖
与我相关
我的任务
分享
<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>
string s = @"<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>";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(s);
XmlNode node = xmlDoc.SelectSingleNode(@"//emotion[phrase='[织]']");
Response.Write(Server.HtmlEncode(node.OuterXml));