/** * Returns whether the given node has any element children. * * @param elt The node to check. * @return Returns <code>true</code> if this node has any children, * <code>false</code> otherwise. */ private boolean hasChildElements(Node elt) { return getFirstChild(elt) != null; }
Element elt = getFirstChild(result.getNode()); boolean end = false; Stack<Element> stack = new Stack<Element>(); elt = getFirstChild(elt); // go down