Check, whether the entities during the compilation process are replaced to the corresponding characters. >>>>templates/test.tpl <?xml version="1.0" ?> <foo> {ecf('<>&')} </foo> >>>>expected.txt OUTPUT >>>>result.txt <foo> OK </foo>