String Processing ( Creating xml file in parallel from database )

We have an IBM S822LC server which is equipped with 2 P100 GPU cards.

What we would like to achieve is to get data from a database and then form an xml file in parallel from those data.

Our data structure:

1278 </bank id>
citibank </bank name>
withdrawal </transaction type>
3459 </branch id>

We have basically more than 10 million rows in the database( each row includes bank_id,bank_name, transaction_type and branch_id columns).

We would like to form the xml part for each rows in parallel by using gpus.Then we would like to put those parts together to form one xml file.

How can we do that? We really appreciate for your help.