var xmldoc = XDocument.Load(@"E:/VS 2010 Projects/ReadXMLFileUsingLINQ/XMLFile.xml");
var results = from Emp in xmldoc.Descendants("empdetails")
select Emp;This code snippet helps you to read the XML file.
This code snippet helps you to read the XML file.
var xmldoc = XDocument.Load(@"E:/VS 2010 Projects/ReadXMLFileUsingLINQ/XMLFile.xml");
var results = from Emp in xmldoc.Descendants("empdetails")
select Emp;