private void startList(String name) throws SAXException {
        ListStyle style = null;
        if (name == null || ! listStyleMap.containsKey(name)) {
            style = NULL_LIST_STYLE;
        } else {
            style = listStyleMap.get(name);
        }
        String elementName = style.getTag();
        listStyleStack.push(style);
        handler.startElement(XHTML, elementName, elementName, EMPTY_ATTRIBUTES);
    }
Check if a node is a text node
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/odf/OpenDocumentBodyHandler.java