[XML-SIG] The Zen of DOM
Thu, 6 Apr 2000 19:13:23 +0100
In article <email@example.com>, Fred L.
Drake, Jr. <firstname.lastname@example.org> writes
>Robin Becker writes:
> > I assume that the events are ordered even though they may be
> > asynchronous; how are errors reported in this model ie as soon as
> > possible or are the error events also randomly delayed?
> The events are ordered, including errors. The (potential)
>asynchrony comes in that the engine doesn't need to know or care that
>that handling of the event is complete before proceeding. For all it
>cares, each event could be run in a separate thread, allowing event
>handling to overlap. This is all an issue for the handler.
>(Normally, there's just one thread involved in parsing & handling, so
>there's nothing to worry about.)
Yes I guessed so, I expect these modern parsers are aimed at streamed
languages. These are just my old semantic actions with more difficult
error context handling.