[jdom-interest] document order of elements

Jason Hunter jhunter at collab.net
Fri Aug 25 13:49:14 PDT 2000

> And I guess, since folks can construct Elements and assemble Documents
> in whatever fashion they choose, we can't use a serial-number on
>  Element.


> Is there anything, currently, that'll walk the tree, and give me
> an in-order java.util.List of the elements?  (Flattening the tree,
> effectively).

I could imagine a method like Document.getTraversalIterator() that
returned an Iterator that walked all Elements.  Maybe there'd be a
similar method on Element too to talk all its kids, since that
functionality would need to be there to support the document method.


More information about the jdom-interest mailing list