XSLFSlide[] slides = xmlSlideShow.getSlides();
for (XSLFSlide slide : slides) {
CTSlide rawSlide = slide._getCTSlide();
CTSlideIdListEntry slideId = slide._getCTSlideId();
CTNotesSlide notes = xmlSlideShow._getXSLFSlideShow().getNotes(
slideId);
CTCommentList comments = xmlSlideShow._getXSLFSlideShow()
.getSlideComments(slideId);
xhtml.startElement("div");
extractShapeContent(rawSlide.getCSld().getSpTree(), xhtml);
if (comments != null) {
for (CTComment comment : comments.getCmArray()) {
xhtml.element("p", comment.getText());
}
}
if (notes != null) {
extractShapeContent(notes.getCSld().getSpTree(), xhtml);
}
xhtml.endElement("div");
}
}