This is a sample application to pull data from a database and export it as an XML file. This can then be used for integration tests with dbunit to have a consistent database state to test against.
Apache commons CLI
This example bases on the information from http://dbunit.sourceforge.net/faq.html#extract and from http://jdbc.postgresql.org/documentation/head/connect.html
You have to adjust the pom.xml if you want to use a different database. Currently it has a dependency to postgresql but you can use all supported databases
* Use apache commons to make it interactive
* Support a few more databases
* Maybe add more than just pure db-dumps