> Any ideas, comments? Is such a persitence layer welcome in dom4j? I think we
> can use jdo (castor), too. 

Yah, Visitor is a top-down.

Though, Iterator could be depth first.

I've suggested, elsewhere, something like:

        Document.iterator( POST_ORDER );

or

        Document.iterator( PRE_ORDER );

and similar things upon Element.

Gives you the same iteration (and better, in fact) than Visitor,
without the overhead of the whole double-dispatch thing that
visitor aims to solve.

        -bob


_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to