Hi Mats
Right now the event based notification is
primarily used at parsing time to notify you as parts of a document gets
constructed. This allows massive XML documents to be processed efficently in a
kind of row by row manner, only keeping one row in memory at once.
We don't yet
offer any event based APIs for editing XML....
This is one is currently on the drawing
board. We want to be able to work nicely with XForms for building web apps
too.
I'd like the support of listeners to be
optional, so that parsing and modifying XML structures doesn't take the
performance hit of having Lists of listeners all over the place.
So I'd like some kind of mechansim which
has no cost if you don't use it but is pretty fast if you do. So I'm thinking
that the Document could be the thing that you listen to for events that occur in
the tree and the Elements notify the parent Document on changes.
So something analagous to DOM2's 'Events'
will probably be added to dom4j really soon (by all means dive in if you want to
help do it ;-)
James
|
- [dom4j-dev] DOM2 Events in DOM4J Mats Norén
- Re: [dom4j-dev] DOM2 Events in DOM4J James Strachan
- Re: [dom4j-dev] DOM2 Events in DOM4J Mats Norén
- Re: [dom4j-dev] DOM2 Events in DOM4J James Strachan