forum

home / developersection / forums / how to get perticular record in xml file using linq.

How to get perticular record in XML file using LINQ.

James Smith 3015 12-Aug-2011
Hi,
I have a small problem, I have a xml file which contains some record, I want to search that record using Linq and if that record does not exists then It return null value.
The format of XML file is as follows.
<root>
<Employee>
<Name>John</Name>
</Employee>
<Employee>
<Name>Jack</Name>
</Employee>
<Employee>
<Name>Tori</Name>
</Employee>
</root>
How can I perform this task....
Help needed........
Thanks.

c# c# 
Updated on 03-Oct-2011
James Smith

Other


Message
Can you answer this question?

Answer

2 Answers

Liked By