In the XWPFDocument, I am utilizing the following methods: - insertNewParagraph - insertNewTbl In the implementation of these two methods, a new XWPFParagraph object or XWPFTable object will be added to the IBodyElement list. However, I encounter a problem: I would like to add a new XWPFSDT element to the IBodyElement list, which is not possible now (in version 5.2.5) because the IBodyElement list is protected, and there is no implemented method to achieve this. It would be beneficial if the insertNewSdt method were implemented in class XWPFDocument, or at least any public method to add elements to IBodyElement! Thank you, Majd
There are no active POI committers who have much experience with the XWPF code base. If you would like to try creating your own PR, I will have a look at it. I would also recommend stackoverflow.com. There are a few active users there who might be able to help you with doing what you want to do with the existing POI releases. For instance, you could write your own subclass of XWPFDocument that exposes a public method to add an XWPFSDT instance.