| This class allows you to walk a tree of JDOM Element objects.
It first walks the tree itself starting at the Element passed
into allElements() and stores each node of the tree
in a Vector which allElements() returns as a result of its
execution. You can then use a #foreach in Velocity to walk
over the Vector and visit each Element node. However, you can
achieve the same effect by calling element.selectNodes("//*") .
author: Jon S. Stevens author: Attila Szegedi version: $Id: TreeWalker.java 524478 2007-03-31 20:51:49Z wglass $ |