- Code: Select all
Object clonedObj = XmlUtils.deepCopy(paraNodeObj);
I want to modify content of the nodes that are returned from xpath, then eventually add the cloned nodes back to the document that I'm working on.
Is this possible?
It is currently Sun Aug 10, 2025 11:23 am
Object clonedObj = XmlUtils.deepCopy(paraNodeObj);
java.lang.NullPointerException
at org.docx4j.model.PropertyResolver.init(PropertyResolver.java:193)
at org.docx4j.model.PropertyResolver.<init>(PropertyResolver.java:161)
at org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart.getPropertyResolver(MainDocumentPart.java:177)
Total posts 10189 • Total topics 2867 • Total members 2097