I just found Apache POI library very useful for editing Word files using Java. Specifically, I want to edit a **DOCX** file using Apache POI's XWPF classes. I found no proper method / documentation following which I could do this. Can somebody please explain in steps, how to replace some text in a DOCX file.

\*\* The text may be in a line / paragraph or in a table row/column

Thanks in Advance :)