for example our xml file is
<?xml version="1.0" encoding="utf-8"?>
<analysis>
<codecoverage>
<Files>
<File>File1</File>
<File>File2</File>
<File>File3</File>
</Files>
</analysis>
</codecoverage>
C# code
string xmlDocument = "locationof xml file";
var values = from e in XDocument.Load(xmlDocument).Descendants("File")
select e.Value;
foreach (var e in values)
{
Console.WriteLine(e);
}
ONLINE .NET TRAINING (C#, VB.NET, ASP.NET, WCF, WPF, WWF, SQL SERVER, LINQ, AJAX, SILVERLIGHT http://onlinenettrainings.blogspot.com/
<?xml version="1.0" encoding="utf-8"?>
<analysis>
<codecoverage>
<Files>
<File>File1</File>
<File>File2</File>
<File>File3</File>
</Files>
</analysis>
</codecoverage>
C# code
string xmlDocument = "locationof xml file";
var values = from e in XDocument.Load(xmlDocument).Descendants("File")
select e.Value;
foreach (var e in values)
{
Console.WriteLine(e);
}
ONLINE .NET TRAINING (C#, VB.NET, ASP.NET, WCF, WPF, WWF, SQL SERVER, LINQ, AJAX, SILVERLIGHT http://onlinenettrainings.blogspot.com/