[
Lists Home |
Date Index |
Thread Index
]
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 :-)
|