in reply to XML parsing - huge file strategy?

XML requires a lot of overhead, both in file size and in processing time. If you only want to dump a table, CSV is probably a better format.

And anyway, why don't you use DBI to query the database directly, processing the table data on the fly?