First, you need to know how to create your XML file (how the data should be formatted there) as that has nothing to do with this plugin. I don't really know how to help there unfortunately.
The $ipn_data array passed via the hook has all the values from the transaction. You can just output it however you want to when you create your XML output.