There are a few choices. If you do not have a set XML form, you can use XML form templates and send them straight out. You can also write a TPL to generate XML. I do that all the time. There are also XSLT tags you can use if you so desire.
that is from templating.cfg not a TPLWhy don't you try one ? Have you ever written a TPL before ?