Create vCF for list of contacts in Blackberry 10 QNX

I have read all the contacts from device and now next I have to create vCF for fetched contact list. I am not able to decide which approach I should go for the same.

I mean to say can I simply use String concatenation or we have better XML approach.