I am generating a docx file with dynamic data in it using docx4j. The sample docx file is retrieved from database. Now i need to modify the dynamic data in the document.
I am using an xstream to generate the xml with dynamic data.
Could anyone tell me how to map this xml to the content controls used in doc files?
I have also found an xpath mapped to the already existing content controls. How is this xpath generated and how to modify the xpath so that i can add a new content control and map the dynamic data?
If any one could tell me how the doc with dynamic data is generated using docx4j, then that would be appreciated.
Thanks in advance.