don't even think of going there
the best option may be to get MySQL to output XML tags, if your version doesn't then you could output the tags as
select "<ROW><COL1>".Column1."</COL1>" as expression1, .......<COLn>".Column1."</COLn></ROW>" as expressionn from my table
its reasonably trivial to dump data from MySQL into say a table in PHP so I'd suggest you do it that way