[xml] xmlwriter, flush file buffer



Hello,

I'm a bit confused with xmlTextWriterFlush (simple wrapper around
xmlOutputBufferFlush).

I expected it to flush the IO and not only to flush the buffer to the
IO. After a short review, it seems that xmlFileFlush should be called
as well. Actually the buffer is just pushed out, and no system flush
is done. xmlFileFlush being called only using the closecallback
(default callback).

Is it the expected behiavior?

The problem is basically the same as described here:
http://www.mail-archive.com/xml gnome org/msg00140.html

My problem is that I have to mess up directly with the IO when using
the libxml IO implementation.

Regards,

--Pierre



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]