(Only just on topic but) What interested me (apart from the whole confecting XML thing) is the use of a terminating character in a trigger.
For example, the second ‘=‘ in ‘=em=‘. It hadn’t occurred to me to use a terminator to aid disambiguation.
It also got me to thinking the technique of using Keyboard Maestro to confect other XML is great. For example, for z/OSMF workflows. (And then there’s confecting HTML.)