broker.endElement(last, null);
broker.endElement(last, currentPath);
    private void endNode(int nodeNr, NodePath currentPath) {        if (doc.nodeKind[nodeNr] == Node.ELEMENT_NODE) {            ElementImpl last =                (ElementImpl) stack.pop();            broker.endElement(last, null);            currentPath.removeLastComponent();        }    }