James wrote: > Its on our TO DO list to allow XPath patterns to be used with the > addHandler() method so that you could use an XPath expression like //foo or > /*/bar or whatever - it shouldn't be too hard to do. The org.dom4j.rule > package already does most of the necessary stuff already. If anyone fancies > diving in and patching the code please go ahead - otherwise I'll try get around > to it real soon.
+1. I started using DOM4J yesterday and have already run into a situation where I could use this feature. A quick look at the source suggests the element handler key should be checked against a rule or pattern. Rule & Pattern appear to be node based though and it isn't clear to me how nodes relate to the data structures available in the Dispatch/Element Handler. Until I know the DOM4J internals a little better I'll and let someone else patch this one. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user