public short acceptNode (Node node) throws DOMException {
        String name = node.getLocalName();
        if (null == name) {
            throw  new DOMException(DOMException.NOT_FOUND_ERR, "DOM Node doesn't have a local name!");
        }
        if (this.tagname.equals(name)) {
            return  this.FILTER_ACCEPT;
        }
        else if (node.hasChildNodes()) {
            return  this.FILTER_SKIP;
        }
        else {
            return  this.FILTER_REJECT;
        }
    }