We have substantial amount of XHTML information in the data that we use to generate a document using Aspose.Words in Java. I use the insertHtml method of DocumentBuilder to get the same reflected on the output document.
But when I try to use the IMailMergeDataSource implementation for looping/repeating data, the parsing fails and I get the tags as is.
For example, BOLD appears as: BOLD is the output document.
Thanks for your inquiry. I think that you should use MergeFieldEventHandler in this case. Please see the following link.
I hope this could help you.