Lists Home |
Date Index |
> >To make such (and general) SAX tasks easier for me
> >I have actually written a class that allows me to
> >register "element handlers" with path epressions
> >(just plain relative paths plus wildcards). This has
> >helped me organize my code better around the parts
> >in the document I am interested in.
> >Something similar might be helpful for you.
> Yep, of course. My idea was about updating the document or
> binding updatable data into variables,
> state handling is part of it of course. Maybe I wasn't very clear with
> my explanations/pseudo code.
Are you asking how to update a document in the middle?
I would rather write the document out again, firing SAX events
to a SAX writer, the modifcations being achieved by firing
different events (in some parts) than those received from the parser