Use data merge within XML driven content
I have a voucher template where I am using XML data to format the greetings while data merge is handling the voucher codes. I am using XML for the greetings because their formatting varies from batch to batch, but are the same within each batch.
Now, someone asked me if it would be possible to have the codes appear within the XML-based greetings as well. So basically what I would like to do is to have a data merge tag within the XML-document so I can run a data merge on it afterwards to combine the static text and the variable data. Do anyone know if that is possible?
I have done some testing by adding
<<code>>into the XML and that did not work out. But perhaps there is a more sophisticaded or advanced way to achieve this? I am confortable with scripting if that is needed.