while (node != null) {
if (node.getNodeType() == Node.TEXT_NODE) {
textBuilderAppend(node.getNodeValue());
} else if (node.getNodeType() == Node.ELEMENT_NODE) {
if (node instanceof TextBookmarkEndElement) {
TextBookmarkEndElement end = (TextBookmarkEndElement) node;
endBookmark(end);
}
OdfElement element = (OdfElement) node;
element.accept(this);