It is currently Thu Apr 03, 2025 8:08 pm
public void replaceTitle(String headerString) throws JAXBException{
String xpath = "//w:r[w:t[contains(text(),'#Dokumentname')]]";
List<Object> list = mainDocumentPart.getJAXBNodesViaXPath(xpath, true);
for (Object obj : list) {
List<Object> objContent=((R)obj).getContent();
objContent.clear();
WordParagraph p = new WordParagraph(headerString);
objContent.add(p.getP());
}
}
String xpath = "//w:r[w:t[contains(text(),'audith')]]";
List<Object> list = documentPart.getJAXBNodesViaXPath(xpath, true);
Total posts 10157 • Total topics 2857 • Total members 2087