I am writing a docx parser with Apache's POI library. I am getting some trouble focusing on how cells are recommended inside a XWPFTable. Can someone let you know that the referencing is performed if non uniform tables are presented (ie two posts with various quantity of rows).

POI XWPF provides you with cells within the order that Word has saved them within the file. It's as (stealthily!) simple as that...

To check on what word does, one option it simply to make use of POI and find out what you'll get. Another would be to unzip the term file - b .docx is only a special zip of xml files. Consider the document XML and find out how Word has made the decision is the easiest method to store your complex group of table cells. Then, request POI on their behalf, and you ought to obtain the same ordering!