Hi all. I've been working on a project that makes heavy use of XWPFDocument,
XWPFTable, and XWPFParagraph from the POI libraries. I'm having some issues
because I want to parse the entire document, paragraphs and tables, in the
order they exist in the document. The original plan was to convert the
document to an XWPFDocument, and then use getBodyElements() to iterate
through the pragraphs and tables, parsing them in order.

However, getBodyElements() seems to be returning a list of elements that all
span the entire length of the document, and contain only the paragraphs or
only the tables. I'm not sure if the numerous elements are versions tracked
by word or something, but they seem like multiple instances of the same
document. Can anyone explain what's going on, or what other method I should
be using to do what I want? Thanks very much.

Regards,
Drew

Reply via email to