This is an application of the Internal Iterator pattern in the GOF book. @param nodeIteratee called for each child node of this element.
591592593594595596597598599600601
if (pushedDown) { // Track this element (closed). tracker.closed(elementName); removeElement(element); parent.forEachChild(this); terminateTraversal = true; } else { // Continue processing (element hasn't been removed or // pushed down).
270271272273274275276277278279280
}; DOMWalker walker = new DOMWalker(visitor); // We can't pass the root node into walk() as the root node // has no name and that results in an exception. root.forEachChild(walker); } return altTextBuffer.toString(); }