Jailer is a tool for test-data extraction, schema browsing, and rendering. It exports consistent and referentially intact row-sets from relational databases. It also removes obsolete data without violating integrity. It is DBMS agnostic (by using JDBC) and generates DbUnit datasets, hierarchically structured XML, and topologically sorted SQL-DML.
Jailer 2.7.0 now supports the DbUnit flat XML dataset file format, thus allowing the users of the famous JUnit extension DbUnit to use the extracted data for unit testing.