Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<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>




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
Posted
Updated 21-Aug-10 0:52am
v2

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900