There is no easy way to do this as far as I can see. What I did was to get at the list of CTBookmark objects from the list of Paragraphs. From each CTBookmark object, it is possible to get at the docoument node it relates to and to then step through the xml markup by calling the getNextSibling() method on that node. You can check the type of the node and should be able to get at the text it contains if it is a run.
Bear in mind that not all bookmarks do contain text. They all will have names but only text if the user highlighted some text when inserting the bookmark. Yours Mark B -- View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-read-the-value-of-bookmarks-docx-tp5710184p5710185.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]
