Re: [dom4j-dev] Passing Context information to the ElementHandler

2001-09-20 Thread James Strachan
Hi Laurent That sounds a reasonable idea - I just wondered what if you need multiple context objects or better typesafety. e.g. consider ... where you want to know the parent foo and bar. Another way to tackle the problem could be for the ElementHandler objects

[dom4j-dev] Passing Context information to the ElementHandler

2001-09-19 Thread Laurent Caillette
Imagine that you want to parse some XML for creating some buisness objects. Let's assume that both have their own untouchable structure. The buisness objects would look like this (I use only 1 class for the example) : public class Module { // private declarations omitted here...