<?xml version="1.0" encoding="utf-8" ?>
<reportgroups>
<Reportgroup id="1" name="reportGroup1">
<report id="1" name="report1" isSheduled="false"></report>
<report id="2" name="report2" isSheduled="false"></report>
<report id="3" name="report3" isSheduled="false"></report>
</Reportgroup>
<Reportgroup id="2" name="reportGrouop2">
<report id="4" name="report4" isSheduled="false"></report>
</Reportgroup>
<Reportgroup id="3" name="reportGrouop3"></Reportgroup>
</reportgroups>
and i have classes
public class Reportgroup
{
public int id { get; set; }
public string name { get; set; }
}
public class Report
{
public int id { get; set; }
public string name { get; set; }
public bool isSheduled { get; set; }
}
how can i read this xml to a list of Reportgroup object using linq. What is its syntax. Each item in List of Reportgroup should contain list of Report