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>.

\stopxmlsetups

However, 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?

dr. Hans van der Meer