I did something ages ago to convert an XML formatted file into the relevant SQL (was for postgress and I got it working for MySQL once as well). The nice thing was it also spat out the HTML documentation for the table as well.
http://leo.cuckoo.org/projects/xml_db_schema/ It's very rough and I wouldn't use it today. Ken Clark contacted me - he does SQL Translator http://search.cpan.org/author/KCLARK/SQL-Translator-0.02/ It's not quite what your after but he said he'll get it doing XML input sometime. Hmm, so this might not be of use, but I thought I'd mention it. Leo