I’ve an XML file, in which I’m saving temporary data(index & name of columns) as given below:
-<NewDataSet>
-<USERROWCOL>
<COL>2</COL>
<Name>Name</Name>
</USERROWCOL>
-<USERROWCOL>
<COL>8</COL>
<Name>PDC</Name>
</USERROWCOL>
<NewDataSet>
I want to read all COLs in an array using C# like it will be an array( {2, 8} ). Can anyone help me about this?
Here is a LINQ to XML Version:
This will give all the
Nameelement from the document.