public Node testNextWord() {
        Node ret = null;
        Node tpointer = pointer;
        if (tpointer == null && !finished) {
            NodeList nList = doc.getElementsByTagName("w");
            if (nList.getLength() > 0) {
                tpointer = nList.item(0);
            }
        }

        if (tpointer != null) {
            ret = tpointer;
            Node next = tpointer.getNextSibling();
            while ((next != null) && ((next.getNodeType() != Node.ELEMENT_NODE) || (next.getNodeName() != "w"))) {
                next = next.getNextSibling();
            }

            if (next == null) {
                finished = true;
            }
        }

        return ret;
    }