I think this article in Knowledge Base would be a good starting point.
XML Writing with XMLTemplater, esp. Exercise 1.b Basic XML Writing - multi-record
Hi @lifalin2016,
I included a very small working sample.
I hope this wil help.
Created with FME 2016.1
I seem to remember that the XMLTemplater didn't like XML-style comments, so you might want to try without them to see if that helps.
If you have two unrelated xml fragments you need to separate them with a comma.
For example a subtemplate of
<a>
<b></b>
<b></b>
</a>
will have no issue, but
<a></a>
<b></b>
will fail.
it needs to be
<a></a>,
<b></b>