How to create a database from an XML file's DTD
Use the following tools:


  1) create full sql schema from DTD.



DTDParse + XML::RDB



  2) convert XML doc with data into SQL.



https://stackoverflow.com/questions/13121456/transform-xml-using-xslt-to-sql


References


DTD Tools (the link no longer works)
XML Matters: Using Python modules xml2sql and dtd2sql