Hello I posted a Bug in SourgeForge...
I think that a problem arises when an instance of DispatcherHandler is used more than once: Please take a look at the following code public void onStart(ElementPath elementPath) { [...] if (atRoot) { path = path + element.getName(); atRoot = false; } else { path = path + "/" + element.getName(); } [...] } This is ok, but the "atRoot" value is never set back to its original state (true), so the next time the "path" is built using a double slash at the beginning. I suggest the following code public void onEnd(ElementPath elementPath) { [...] path = (String)pathStack.remove( pathStack.size() - 1 ); // Fix: if (pathStack.size() == 0) { atRoot = true; } } Am I right? Regards Ricardo ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev