I've the following XML :
<datarow>
<datacol><![CDATA[Value1]]></datacol>
<datacol><![CDATA[Value2]]></datacol>
<datacol><![CDATA[Value3]]></datacol>
</datarow>
<datarow>
<datacol><![CDATA[Value5]]></datacol>
<datacol><![CDATA[Value6]]></datacol>
<datacol><![CDATA[Value7]]></datacol>
</datarow>
// ...
How can I create an bi-dimensional array using linq?
I'll avoid doing :
foreach("datarow") {
foreach ("datacol") { ... }
}
Thanks !
[EDIT] Final array should be like this:
array[,] = {{ "Value1", "Value2", "Value3"} , { "Value4", "Value5", "Value6"}}