|
I think the difficulties noted here for applying good OO design techniques to a pull parser, really serve as an indictment of the pull parsing pattern in general, as opposed to event-driven designs like SAX.
In other words, you have this design quandry of choosing between some convolutions and costly inefficiencies to make it more OO, or to have this very flat, ugly, non-OO design. When you find yourself in design dilemmas that have no good solution it's usually in indication that some broader design decision that has sent you down this path, was wrong.
|