I have a table column that contains XML string. I need to parse the data from each row (XML string column) and insert it into a different table where columns are actually the tags from that XML.
so lets say "tableA.xmlcolumn" contains:
<xml>
<tag-a>bla bla bla</tag-a>
<tag-b>bla bla bla</tag-b>
<tag-c>bla bla bla</tag-c>
</xml>
Into
"tableB"
tag-a | tag-b | tag-c
---------------------------------------
bla bla bla | bla bla bla | bla bla bla
TableA have 300K~ rows
How would you approach this using PHP/MySQL?
Thanks!