Re: [xml-dev] Updating document with SAX

From
Karl Waclawek <>
To
Toni Uusitalo <>
Date
2003-11-20T18:44:39Z
ID
<00c301c3af96$5a70e850$9e539696@citkwaclaww2k>
Thread
Re: [xml-dev] Updating document with SAX
> >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

Karl