Thanks for that! Try as I might, I could not get the call to getNodeValue() to return anything other than null. Will have a play some time today with your code to see if I can integrate it into the chunk I posted. Am thinking about approaching Yegor with the suggestion that the insert and recover stuff be put into a patch for the API and would like to use that piece of code you posted if I can get it to work.
Also, there is a final wrinkle that may or may not affect you. It is possible to nest bookmarks one inside another to almost any level. Thus, the current practice of stepping along from one bookmarkStart tag to a bookmarkEnd tag will yield incorrect results. It is possible to get at the id attribute of the bookmarkStart and end End tags and I have changed to code so that the main loop now steps along the nodes between matching start and end tags. Will post once I get it all working so that others have access to it. Yours Mark B -- View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-read-the-value-of-bookmarks-docx-tp5710184p5710229.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]
