How to parse XML without specific tag names in C#

wowftw

New Member
I've the following XML, which I'd like to parse in my C# code. However, I don't have any idea how this should be done.\[code\]<?xml version="1.0" encoding="UTF-8" standalone="yes"?><results> <fields> <field>COLUMN_NAME_1</field> <field>COLUMN_NAME_2</field> <field>COLUMN_NAME_3</field> <field>COLUMN_NAME_4</field> </fields> <rows> <row> <col>value_for_column_1</col> <col>value_for_column_2</col> <col>value_for_column_3</col> <col>value_for_column_4</col> </row> <row> <col>value_for_column_1</col> <col>value_for_column_2</col> <col>value_for_column_3</col> <col>value_for_column_4</col> </row> ... </rows></results>\[/code\]This is just an example, because I can't provide real data. The structure of XML looks exactly the same. "COLUMN_NAME_" and "value_for_column_" are represented by a string. I'd be very thankful if you could help me.
 
Back
Top