Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.
For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email firstname.lastname@example.org.
for the moment there is no way to export invoice in csv or xml.
To start I recoment you to read the chapter 10 of the php|architec’s guide of programming Magento.
Maybe you will be able to write your own script using the Magento API .
This thread is pretty dead but maybe you will find somethink interesting for you problem : Import-Export order