Try progressive parsing. Check out the PParse sample; also check out
SAXParser::parseFirst and SAXParser::parseNext.
-----Original Message-----
From: Feng Tian
To: [EMAIL PROTECTED]
Sent: 9/6/01 5:36 PM
Subject: Parse a huge file, piece by piece
Hi,
I got a question when use XML4C. I got a huge XML
file, and wonder if I can parse that file piece by
piece, that is, I want to do the following
////////////////////////////////////////////////////
char buffer[8192];
SAXParser p;
while(read(fd, buffer, 8192) > 0) {
// Let p parse the chunck in buffer
}
////////////////////////////////////////////////////
Is this possible with XML4C?
Thanks.
Feng
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]