Export purchase invoices for XML

Does anyone know if it is possible to export a list of unpaid purchase invoices? It would be great if I could export the name of the supplier, bank account number (custom field), description, invoice number, amount and due date (or purchase date) of the invoices. I want to use this to create a payment file (XML) for my bank.

I’m not sure about whether Extensions support working with collections/selections at this point in time but I know that this is possible using a staging tool linked to the API. Spreadsheet programs could work.