I would like to parse an unusually formatted xml file, I'm pretty new at this so pointers would be helpful.
My XML file looks something like this.
<report>
<table>
<columns>
<column name="Name"/>
<column name="Age"/>
</columns>
<rows>
<row Name="Jackie Chan" Age="53" />
<row Name="Tim Burton" Age="65" />
<row Name="Steven Segal" Age="52" />
etc.....
</rows>
</table>
<totals>
<subtotal films="5" rating="4" views="12000">
etc....
</totals>
</report>
How would I in C# get the column names inside of "row" and the values of "Name" and "Age" in each row?
I would like to take this data and hold it in a dataset to insert into MSSQL.
Can anyone give me some pointers please?
Thanks
David