On Saturday, 12/08/2001 at 03:10 ZE9, Andy Clark <[EMAIL PROTECTED]> wrote:
> we can't very well have standard API on the SAXParser to
> do pull parsing -- it would only work when the parser
> configuration implements the XMLPullParserConfiguration
> interface.

That isn't a problem. Simply define the request for an incremental SAX
parser as being allowed to return "Sorry, can't do that" and let folks
decide whether they want to issue the nonincremental call instead.

Or define an interface which is only implemented by those which support
this feature, and let us run an instanceof test, then cast.

There are lots of Good Answers available here. The current "create a new
parser because that's the only way to get access to the object which
carries the necessary API" approach really isn't one of the best.


(BTW, it looks like the failure which seemed to be occurring in
non-incremental was actually a "magic" default that was switching us into
incremental even though it hadn't been explicitly requested. We're taking
that out and telling folks to use Process.java's explicit -INCREMENTAL
switch when they want it, so the Sun folks can run against Xerces2 without
exposing the bug.)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to