Re: [xml-dev] Genx

From
Adam Turoff <>
To
David Tolpin <>
Date
2004-01-20T14:57:11Z
ID
<>
Thread
Re: [xml-dev] Genx
On Tue, Jan 20, 2004 at 06:45:09PM +0400, David Tolpin wrote:
> > void genxStartDocument(genxWriter w, FILE * file);
> 
> While FILE * is 'standard', it is often incovenient to use it; I would prefer
> to have
> 
> void genxStartDocument(genxWriter w, char *buf, int size, void (*bytesReady)(int n,void *userData))
> 
> size is the size of the buffer, bytesReady is passed actual number of bytes available.
> Much more freedom to use.

I think there are two important use cases here: writing output to a
stream, and buffering output to a string (UTF8 or wchar_t).  The
difference can be abstracted away within the guts of the genxWriter
structure.

Z.