xmlOutputBufferPtr xmlOutputBufferCreateFilename (const char * URI,
xmlCharEncodingHandlerPtr encoder,
int compression)
xmlOutputBufferPtr xmlOutputBufferCreateIO (xmlOutputWriteCallback iowrite,
xmlOutputCloseCallback ioclose,
void * ioctx,
xmlCharEncodingHandlerPtr encoder)
int xmlOutputBufferFlush (xmlOutputBufferPtr out)+
const xmlChar * xmlOutputBufferGetContent (xmlOutputBufferPtr out)+
size_t xmlOutputBufferGetSize (xmlOutputBufferPtr out)
int xmlOutputBufferWrite (xmlOutputBufferPtr out,
int len,
const char * buf)
int xmlOutputBufferWriteEscape (xmlOutputBufferPtr out,
const xmlChar * str,
xmlCharEncodingOutputFunc escaping)
int xmlOutputBufferWriteString (xmlOutputBufferPtr out,@@ -153,7 +155,11 @@ int xmlInputReadCallback (void * context,
const char * str)
Create a buffered output for the progressive saving to an I/O handler
iowrite: | an I/O write function |
ioclose: | an I/O close function |
ioctx: | an I/O handler |
encoder: | the charset encoding if known |
Returns: | the new parser output or NULL |
int xmlOutputBufferFlush (xmlOutputBufferPtr out)
flushes the output I/O channel
-out: | a buffered output |
Returns: | the number of byte written or -1 in case of error. |
int xmlOutputBufferWrite (xmlOutputBufferPtr out,
int len,
const char * buf)
+
out: a buffered output Returns: the number of byte written or -1 in case of error. Function: xmlOutputBufferGetContent
const xmlChar * xmlOutputBufferGetContent (xmlOutputBufferPtr out)
+Gives a pointer to the data currently held in the output buffer
+
out: an xmlOutputBufferPtr Returns: a pointer to the data or NULL in case of error Function: xmlOutputBufferGetSize
size_t xmlOutputBufferGetSize (xmlOutputBufferPtr out)
+Gives the length of the data currently held in the output buffer
+
out: an xmlOutputBufferPtr Returns: 0 in case or error or no data is held, the size otherwise Function: xmlOutputBufferWrite
int xmlOutputBufferWrite (xmlOutputBufferPtr out,
int len,
const char * buf)
Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.
out: a buffered parser output len: the size in bytes of the array. buf: an char array Returns: the number of chars immediately written, or -1 in case of error. Function: xmlOutputBufferWriteEscape
int xmlOutputBufferWriteEscape (xmlOutputBufferPtr out,
const xmlChar * str,
xmlCharEncodingOutputFunc escaping)
Write the content of the string in the output I/O buffer This routine escapes the caracters and then handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.