On 17 Apr 2023, at 12:32, Hans van der Meer <havdmeer@ziggo.nl> wrote:I would like to change an entity 'on the fly'. Example\def\DATE{THEDATE}\expanded{\xmlsetentity{DATE}{\DATE}}\startxmlsetups typ:event\def\DATE{NEWDATE}\expanded{\xmlsetentity{DATE}{\DATE}}Using &DATE; within the <event>.\stopxmlsetupsHowever, using &DATE; inside an <event> always results in THEDATE and never in NEWDATE.How can I change the value of the entity inside the xmlsetups?