Re: [xml-dev] Genx

From
David Tolpin <>
To
Date
2004-01-20T15:28:41Z
ID
<>
Thread
Re: [xml-dev] Genx
> > 
> > Have you looked at the API of James Clark's Expat?
> 
> The reason there is that (especially) character data are passed
> through pointers into an internal working buffer. Having a null
> terminator in the API would effectively force Expat to allocate
> a new copy of the string.
> 
> Could there be a similar siutation for a writer API?
> Possibly yes - as it is conceivable that the data to be
> written out are part of some larger text/structure and
> there is no reason to force a new string allocation on the caller.

Yes, this is my point.