Daniel Veillard wrote:
I havent yet tried the code, looks fine though, and was going to do some consolidation on it first i.e. xmlOutputBufferCreateBuffer calling xmlOutputBufferCreateIO and xmlNewTextWriterMemory calling xmlOutputBufferCreateBuffer.XMLPUBFUN xmlOutputBufferPtr XMLCALL xmlOutputBufferCreateBuffer (xmlBufferPtr buffer, xmlCharEncodingHandlerPtr encoder);A new API but it's not a bad idea, making the link between normal sources and xmlOutputBuffer / xmlInputBuffer is always confusing new comers to libxml2.
Is there any reason why xmlTextWriterWriteMemCallback always returns len and doesnt do an error check? In the event of an error writing to the buffer it looks like this would be wrong not to signal an error.
Rob _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
