In my current project we are creating word 2007 document at runtime. I am developing Java component that takes word 2007 template (docx) files as input and it also fetches values from external web services. Then this java component builds actual word 2007 document (docx) file by merging the values into template file (replacing values with placeholders). Since I am new to word 2007 open xml file format, I am facing difficulties in parsing and updating the dotx/docx files.
Is there any Java API that can be used to parse and update the word 2007 file formats?
How to parse and update the Word 2007 file using java? I have a document.docx file which contains the placeholder with in the tag like this:-
how to parse this tag and populate the data for the placeholder [[bodycontent]]? Please shed some light into this. I know that Apache POI will be an option, is there any thing other than this.