in reply to XML parsing - huge file strategy?
And anyway, why don't you use DBI to query the database directly, processing the table data on the fly?