Object Relational Tools

What tool should I use if I want to describe a database in XML and import data into that database using an XML file with a similar node structure?

It would be cool if that tool would work with MYSQL and perhaps make it easy to switch to another database sometime in the future. Maybe a Java driven database?