Re: [xml-dev] Inversion of control (was: DOM's javascript roots (was Re: [xml-dev] Have JDOM / XOM / etc. failed?))

From
Gavin Thomas Nicol <>
To
XML Developers List <>
Date
2006-04-26T04:46:50Z
ID
<>
Thread
Re: [xml-dev] Inversion of control (was: DOM's javascript roots (was Re: [xml-dev] Have JDOM / XOM / etc. failed?))
On Apr 25, 2006, at 5:06 PM, Michael Kay wrote:

>
>> That's pretty hard-core. ;-)
>> (due to SAX imposed "involuntary
>> inversion-of-control")
>
> Perhaps it's voluntary?

Absolutely voluntary, and for the reason you mentioned. It's very  
common for me to have 3 or 4 'handlers' consuming SAX events, parsing  
the XML into whatever internal data structures I need.

FWIW. I usually write my own lexers/parser by hand, rather than using  
yacc/lex too.... better error handling and cleaner code usually :-)