c#.net与Linq [英] c#.net with Linq

查看:92
本文介绍了c#.net与Linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<Messages>
    <messageId>907</messageId>
    <senderUserId>2</senderUserId>
    <receiverUserId>1</receiverUserId>
    <messageContent>dflgd
gdfjhgd
gdflg
gdfhlg
dfhgl
dfhgl
gfdh
gfdl
hfld</messageContent>
    <timeStamp>8/21/2010 1:42:02 PM</timeStamp>
    <roomId>536</roomId>
    <toDelete>False</toDelete>
    <fromDelete>False</fromDelete>
    <msgStatus>False</msgStatus>
  </Messages>





xml文件中的数据包含我想要msgStatus为false的数据

使用Linq转换为xml


请给我解决方法..


我想用Linq来查询那个





in xml file contains data i want that data whose msgStatus is false

using Linq to xml


pls give me solution ..


i want Linq query for that

推荐答案

您是否甚至想到过使用Google查找示例代码的想法?

我在"linq to xml sample"上进行了谷歌搜索,发现此网站的点击量超过120万.

http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.ashx [
Did you even have a twinkle of a thought of using google to find sample code?

I googled "linq to xml sample", and found this site among over 1.2 MILLION hits.

http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.ashx[^]


这篇关于c#.net与Linq的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆