I have an xml like this:
<root>
<row col1="value1" col2="value2" ...... coln="valuen"/>
<row col1="value1" col2="value2" ...... coln="valuen"/>
.
.
.
<row col1="value1" col2="value2" ...... coln="valuen"/>
</root>
How do I convert this into a table attribute names as column names and attribute values as column values?
This will work, assuming that each row has the same number of attributes:
If there might be additional attributes that don’t represent column values, you’d need to filter out those by checking the name or something.