Can i get the content of the listItem? like I want the text '第4章"
but when i use code like :
NodeCollection<Paragraph> childNodes = doc.getChildNodes(NodeType.PARAGRAPH, true);
for (Paragraph paragraph : childNodes) {
if (paragraph.isListItem()){
System.out.println("=========");
System.out.println(paragraph.getListLabel().getLabelString());
}
}
it printed nothing.
here is the test file.
test.docx (109.9 KB)
how can i get the content of it ?