My application fills an Indesign document with the contents of a database. While doing this, an XML tag is assigned to every field to allow identification and updating. The whole thing works quite nicely, but now a problem has come up, if a database field is empty. This means, no text as well as no XML tag.
Long story short, I need a way to either assign an XML tag to an empty text (if at all possible) or I need to assign it to some character, which is neither visible nor takes up any space - or any other solution which allows me to assign add an XML tag to my document structure.
Any help is appreciated!
You can mark up an insertion point. If that won't work for you, you can insert a zero-width non-breaking space (0xfeff; String.fromCharCode(65279))—those shouldn't and don't usually cause reflow.
The zero-width non-breaking space is exactly what I was looking for. I didn't know such a character existed.
Thank you very much for the quick help :-)