The bookmark code works with Paragraph objects and so you need to get at
those paragraphs that constituite the header or footer. Look into the
XWPFHeaderFooterPolicy class; an object of this type exposes methods to
access the headers and footers, then from an XWPFHeader or XWPFFooter yo can
get the paragraphs. You get an object of this type from the document by
calling the getHeaderFooterPolicy() method on the XWPFDocument.



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/How-to-read-the-value-of-bookmarks-docx-tp5710184p5710751.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to