[xml] streaming output

Date view Thread view Subject view Author view

From: Havoc Pennington (rhp@zirx.pair.com)
Date: Fri Jun 04 1999 - 12:58:21 EDT


Hi,

I have the following problem: when writing out a Guppi file with an XML
node for each value in a dataset, I exhausted 128 megs of real memory and
256 megs of swap (because the in-memory XML tree was huge).

You'll be glad to know that libxml didn't crash, even after repeated
malloc failures, but the save wasn't successful either. :-)

Any suggestions on how to handle this? Some kind of streaming output? Does
the SAX interface allow that?

Another issue that comes up with large files is a progress display during
load/save. It would be nice to be able to provide a callback like:

typedef int (*xmlPulseFunc) (void* user_data);

where libxml would invoke the callback every second or so, and if the
callback returned FALSE the load/save would end (to allow a Cancel button
on the progress dialog).

Havoc

----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:38 EDT