[wsf-c-dev] External dependencies

James Clark james at wso2.com
Fri Dec 8 02:29:21 PST 2006


On Fri, 2006-12-08 at 15:02 +0600, Samisa Abeysinghe wrote:
> James Clark wrote:
> >
> > I don't think that's quite what's going on.  The lowest level of the
> > parser has a SAX-like interface.  The pull parser is built on top of
> > this.  It runs the SAX parser over the input chunk, with the SAX parser
> > calling callbacks installed by the pull parser.  These callbacks store
> > events that are later progressively returned by the pull parser. There's
> > no tree-building involved that I can see.  In effect, the pull parser is
> > building events in batches rather than one at a time. I don't think
> > that's inherently less efficient.
> >   
> Hmm, I missed the callback registering part. Anyway, I have seen that, 
> when using libxml2, if there is an XML error in SOAP envelope payload, 
> the parser fails, before we start pulling the stuff form engine. So I 
> was under the impression that it was not pure pull.

Sounds like it's parsing the first input chunk eagerly, before you ask
for the first event.  Is this a problem for us?  If so, I suggest
submitting a bug report. I guess it wouldn't be hard to fix.

James






More information about the Wsf-c-dev mailing list