I\'ve included jakarta-poi-1.5.1-final-20020615.jar file to read content from ms word.
I am unable to do this ...can anyone help me?
This method will print the internal runs of the entire document so you will be able to compare the values based on xml text.
for (XWPFParagraph p : doc.getParagraphs()) { for (XWPFRun r : p.getRuns()) { String text = r.getText(0); System.out.println(text); } }