I have an XML that looks like this
<Labs>
<Lab id="a" name="a">
<Test name="aa"></Test>
<Test name="ab"></Test>
<Test name="ac"></Test>
</Lab>
<Lab id="b" name="b">
<Test name="ba"></Test>
<Test name="bb"></Test>
</Lab>
</Labs>
I want to get the data from this XML in a single table using LINQ to XML through a single select statement. If you could provide me with a reference of how to do the query.
I am binding the Linq to XML query output to silverlight grid. The output should be like this in silverlight…
LabName TestName
a aa
a ab
a ac
b ba
b bb
OK here is a working example: