using System.Collections.Generic;
public static void Main()
const string xml = @"<configuration>
<work worktype=""homeWork"">
<worktime day=""30"" time=""10:28""></worktime>
<worktime day=""25"" time=""10:50""></worktime>
<work worktype=""officeWork"">
<worktime day=""12"" time=""09:28""></worktime>
<worktime day=""15"" time=""12:28""></worktime>
var nav = XDocument.Parse(xml).CreateNavigator();
foreach (XPathNavigator work in nav.Select("configuration/company/work"))
var workType = work.GetAttribute("worktype", string.Empty);
foreach (XPathNavigator worktime in work.Select("worktime"))
var day = worktime.GetAttribute("day", string.Empty);
var time = worktime.GetAttribute("time", string.Empty);
Console.WriteLine($"{workType}, {day}, {time}");