currentPath.addComponent(((ElementImpl) child).getNodeName());
currentPath.addComponent(((ElementImpl) child).getQName());
    private void removeAll(NodeImpl node, NodePath currentPath) {        switch (node.getNodeType()) {            case Node.ELEMENT_NODE:                NodeList children = node.getChildNodes();                NodeImpl child;                for (int i = children.getLength() - 1; i > -1; i--) {                    child = (NodeImpl) children.item(i);                    if (child.nodeType == Node.ELEMENT_NODE) {                        currentPath.addComponent(((ElementImpl) child).getNodeName());                        removeAll(child, currentPath);                        currentPath.removeLastComponent();                    }                    else                        removeAll(child, currentPath);                }                ownerDocument.broker.removeNode(node, currentPath);                break;            default :                ownerDocument.broker.removeNode(node, currentPath);                break;        }    }