In the processing of incoming xml-data this is typeset as is, not as processed text.
Thus for example: with \xmlflush{#1} the incoming data: "<text>its_content</text>" is not typeset as: "its_content", but as: <text>its_content</text>.
Substitution of \xmlcontext{#1}{.} for \xmlflush{#1} makes everything go away.

Allthough my program is a bit too long to present here, a minimal example is the application of \xmlstripped{#1}{.} instead of \xmlflush{#1}; it has the same result.
The output below shows how things looks and clarifies the issue; see the second answer of the multiple choice.

How to process these data to neatly typeset material?

Hans van der Meer