Hi all,
I have a requirement to parse a docx file, looking for user-supplied tags and substitute images or text.
As noted in the getting started guide, searching for text is problematic because the text could be broken across multiple runs.
I'm wondering if there's a way to (using Word) insert some sort of tag that's easy to parse for in the XML (using docx4j).
One possible solution I found: Insert a hidden HTML element. This allows me to specify arbitrary text, but the XML that's created for a single HTML hidden field is a bit much.
I also thought of inserting a bookmark, but the text for a bookmark is quite constricted (no spaces, no delimiters except underscore).
Any other suggestions for something that I could use as a "tag" in word that I could search for and substitue in the XML?
Thanks!
-d