--- embedaddon/libxml2/doc/html/libxml-xmlIO.html 2013/07/22 01:22:26 1.1.1.2 +++ embedaddon/libxml2/doc/html/libxml-xmlIO.html 2014/06/15 19:53:36 1.1.1.3 @@ -51,6 +51,8 @@ int xmlInputReadCallba
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, 
const char * str)
@@ -153,7 +155,11 @@ int xmlInputReadCallback (void * context,

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

Function: xmlOutputBufferFlush

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.

Function: xmlOutputBufferWrite

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.