You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Nadav Benedek <na...@gmail.com> on 2016/11/15 11:41:50 UTC

XWPFSDT

Hi team,

Do you know how can I change the content of XWPFSDT?

When I do XWPFSDT.getContent() and I get a XWPFSDTContent object, all the
paragraphs and runs in it are private...

Thanks,
Nadav.

RE: XWPFSDT

Posted by "Murphy, Mark" <mu...@metalexmfg.com>.
It depends on where the SDT is. You are going to have to use the CT classes to do it though. The SDT part of XWPF is pretty much read only at the moment. You can find the spec here http://www.ecma-international.org/publications/standards/Ecma-376.htm. POI uses the 1st edition. Parts 3, and 4 will likely be the most informative. You should be able to get to the CT classes from most of the document parts that can contain an SDT, but you can't get there from XWPFSDT.
 
-----Original Message-----
From: Nadav Benedek [mailto:nadavbenedek@gmail.com] 
Sent: Tuesday, November 15, 2016 6:42 AM
To: POI Users List <us...@poi.apache.org>
Subject: XWPFSDT

Hi team,

Do you know how can I change the content of XWPFSDT?

When I do XWPFSDT.getContent() and I get a XWPFSDTContent object, all the paragraphs and runs in it are private...

Thanks,
Nadav.