[
Lists Home |
Date Index |
Thread Index
]
- From: Eric Bohlman <ebohlman@netcom.com>
- To: "Clark C. Evans" <clark.evans@manhattanproject.com>
- Date: Thu, 16 Dec 1999 22:48:40 -0800 (PST)
On Thu, 16 Dec 1999, Clark C. Evans wrote:
> On Fri, 17 Dec 1999, James Clark wrote:
> > How so? You can layer a next event style interface on top of expat by
> > maintaining a queue of events. A request for the next event returns the
> > head of the queue; if the queue is empty, it fills the queue by reading
> > another chunk of input and passing it to XML_Parse() with event handlers
> > that append to the queue of events.
>
> James,
>
> This would require a multi-threaded approach,
> is this correct?
Nope. You just check if there are any events in the queue; if not, you
read in a chunk of input and call XML_Parse on it (setting the "final"
parameter as appropriate) to fill up the queue. XML_Parse doesn't require
the *entire* document as an argument.
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|