Click here to Skip to main content
15,790,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In My XML File suppose its Contains element
path and status

Now i want to read all the node whose status are 0 or 1
how can i read
Updated 28-Dec-11 18:36pm
Sergey Alexandrovich Kryukov 28-Dec-11 23:37pm    
Status? What is it? Child node, attribute? You cannot have a tag named "0" (figure).
Ankita Mali 28-Dec-11 23:45pm    
status and path is element of root node
i want the path value whose staus is 0 or 1
zenwalker1985 28-Dec-11 23:40pm    
Read the topic LINQ TO XML.

If you are having difficulty understanding how to do this, you should read this article here on CP. It is older (for .NET 1.1), but it may give you the understanding of how to do this bit of homework.
XML for beginners and experts[^]
Share this answer
dv = new DataView(ds.Tables [0],
                       "Status IN (0,2)",
                       "strpath asc",
Share this answer
Amir Mahfoozi 29-Dec-11 3:20am    
So what is the role of XML here ?

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