Just a few small enhancements to enable decent Excel style csv output would be great.
– Support for a comma delimiter
– If a column value contains the delimiter character then it should be surrounded by double quotes
– If a column value contains double quotes then it should be surrounded by double quotes and double quotes within should be repeated (this might be Excel specific)
– Formatting of dates (yyyy-mm-dd), booleans, etc. can be an issue
Some great classes for dealing with CSV and Excel CSV files can be found at http://ostermiller.org/utils/CSV.html – I seem to recall an Apache commons component being not too far off being able to do this as well (most likely something in commons-lang).
For xml (which I personally am less interested in) Apache Jakarta Torque provides a datadump (maven goal, ant target) for dumping data to xml (disclosure: I am a Torque committer) and I think db-unit might also do the same.
Cheers,
Scott