You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Williamson, Siehnai" <sw...@docucorp.com> on 2001/06/22 19:38:00 UTC
Streaming XML input
Rather than MemBufInputSource, is there another way of streaming input into
the SAX parser as it needs it?
-----Original Message-----
From: David_N_Bertoni@lotus.com [SMTP:David_N_Bertoni@lotus.com]
Sent: Friday, June 22, 2001 12:23 PM
To: xerces-c-dev@xml.apache.org
Subject: Re: Separate MemBufInputSource as input
I don't think there is. You'll probably have to use one
MemBufInputSource
and multiplex it yourself.
Dave
"Williamson,
Siehnai" To:
"'xerces-c-dev@xml.apache.org'" <xe...@xml.apache.org>
<swilliamson@doc cc: (bcc: David N
Bertoni/CAM/Lotus)
ucorp.com> Subject: Separate
MemBufInputSource as input
06/22/2001 01:19
PM
Please respond
to xerces-c-dev
Hi,
I am using the MemBufInputSource as my input source for the SAX
parser.
However, my application will have to stream the data piecemeal as
separate
MemBufInputSource's to the SAX parser because of the size of the
input
files.
For instance, a MemBufInputSource will represent only a chunk of
the
actual xml file. When the SAX parser reaches the end of that memory
buffer, it will need to wait for the next MemBufInputSource to
continue
parsing rather than ending the parse or giving an error. Is there a
way
for the SAX parser to parse one buffer, wait, then parse another
buffer,
wait, and so on, until you tell the parser that this is the last
buffer?
Siehnai Williamson
DocuCorp International, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org