Hi there.
I have a docx template with several placeholders like ${name}, and I'm using docx4j for the replacement of the placeholders.
I found a code that works pretty well (you can find it in attach) but when I open the new file created in Microsoft word, I get this error message:
"The xml data is invalid according to the schema. Location: Part: /word/document.xml, Line:0, Column:0".
After that error message I get another message:
"Word found unreadable content. Do you want to recover the content of this document? If you trust the source of this document, click yes".
At this point if I click yes the document results correct, but all this messages are really annoying.
I'm new to docx manipulation and I don't know how to solve this problem.