I made use of the next code to see list structures from the word file using hwpf. My question is how you can read a listing structure that's nested ie a listing within a listing within a listing and so forth.

if (p instanceof ListEntry) {


                ListEntry entry = (ListEntry) p;
                outText = entry.text();
                outText = "<li>" + outText + "</li>";

                // verifca prima e ultimo
                if (i > 1) {

                    pPrev = range.getParagraph(i - 1);
                    if (!(pPrev instanceof ListEntry))
                        outText = "<ul>" + outText;
                }

                if (i < nParagrafi - 1) {

                    pNext = range.getParagraph(i + 1);



                    if (!(pNext instanceof ListEntry))
                        outText = outText + "</ul>";

                }
                if (i == nParagrafi - 1) {
                    outText = outText + "</ul>";
                }

I attempted that one but it's labored just for not-purchased list like bullets,ovel,circle.. I wish to read an designated formats like 1,2,3...I,II,III...A,b,C,, can you really read an purchased list products......

Thanks Jetti.

You considering it incorrectly. It isn't really a listing nested within a listing. It's a listing with various list levels.

http://www.brandonrachal.com/?p=117