Maybe Plex-XML from All About could generate data export as xml? (as a separate pattern)?
Indeed you can create patterns to pass data to defined xml output, by using xslt transformation. It is a matter of joining an xml expert with Plex to write xml.
I don't know what is your working variant, but there are java or System i services or libraries to get help if you are there. Surely it is the same for Windows.