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 Smith273712-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.

Updated on 03-Oct-2011

Can you answer this question?


Answer

2 Answers

Liked By