# Generate database from xml file

**URL:** <https://www.ruby-forum.com/t/generate-database-from-xml-file/125358>\
**Category:** Rails\
**Created:** [January 8, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/generate-database-from-xml-file/125358 "2008-01-08T16:06:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajitonrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Post date:** [January 8, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/generate-database-from-xml-file/125358/1 "2008-01-08T16:06:09Z")

</div>

hello All

I recently downloaded a sample RoR project and tried to execute rake  
db:migrate. only one table got created. but i noticed one xml file in  
db folder.

it has whole database structure. i mean tables, data and all that. but  
i dont know how to convert that xml file into mysql database.

following is the sample code from that file:

\<?xml version="1.0" encoding="UTF-8" standalone="no"?\>

please advice

Ajit
