maybe this question is quite easy to answer and a bit stupid but for now google was not quite able to help me.
I have a docx-file where I search for a certain paragraph with xpath containing a certain text.
- Code: Select all
String xpath = "//w:p[w:r[w:t[contains(text(),'"+$example$+"')]]]";
The corresponding list just contains one entry which I want to replace like this:
- Code: Select all
list.set(0, newContent);
(newContent is an Object containing new paragraphs. I got this Object from unmarshalling ...