I have the following XML node:
<reportDataRow>
<columnData colNum="1">
<data>FirstName</data>
</columnData>
<columnData colNum="2">
<data>LastName</data>
</columnData>
</reportDataRow>
I want to retrieve the value from the data node based on the value of the colNum attribute in the columnData node.
How would I accomplish that using LINQ?
again assuming reportDataRow is an XElement and value is a variable that you want to match the colNum attribute with;
usage will change based on how you want it