http://swpat.ffii.org/Action against software patents http://www.gnome.org/Gnome2 Logo http://www.w3.org/StatusW3C Logo http://www.redhat.com/Red Hat Logo http://xmlsoft.org/Made with Libxml2 Logo 
Module xmlIO from libxml2
API Menu ../index.htmlMain Menu ../docs.htmlDeveloper Menu ../examples/index.htmlCode Examples index.htmlAPI Menu libxml-parser.htmlParser API libxml-tree.htmlTree API libxml-xmlreader.htmlReader API ../guidelines.htmlXML Guidelines ../ChangeLog.htmlChangeLog API Indexes ../APIchunk0.htmlAlphabetic ../APIconstructors.htmlConstructors ../APIfunctions.htmlFunctions/Types ../APIfiles.htmlModules ../APIsymbols.htmlSymbols Related links http://mail.gnome.org/archives/xml/Mail archive http://xmlsoft.org/XSLT/XSLT libxslt http://phd.cs.unibo.it/gdome2/DOM gdome2 http://www.aleksey.com/xmlsec/XML-DSig xmlsec ftp://xmlsoft.org/FTP http://www.zlatkovic.com/projects/libxml/Windows binaries http://www.blastwave.org/packages.php/libxml2Solaris binaries http://www.explain.com.au/oss/libxml2xslt.htmlMacOsX binaries http://libxmlplusplus.sourceforge.net/C++ bindings http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4PHP bindings http://sourceforge.net/projects/libxml2-pas/Pascal bindings http://rubyforge.org/projects/xml-tools/Ruby bindings http://tclxml.sourceforge.net/Tcl bindings http://bugzilla.gnome.org/buglist.cgi?product=libxml2Bug Tracker libxml-xlink.htmlPrev libxml-xlink.htmlxlink index.htmlUp index.htmlAPI documentation ../index.htmlHome ../index.htmlThe XML C parser and toolkit of Gnome libxml-xmlautomata.htmlxmlautomata libxml-xmlautomata.htmlNext interface for the I/O interfaces used by the parser 
Table of Contents
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	#xmlAllocOutputBufferxmlAllocOutputBuffer 	( libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlAllocParserInputBufferxmlAllocParserInputBuffer 	( libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)int	#xmlCheckFilenamexmlCheckFilename 		(const char * path) libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#xmlCheckHTTPInputxmlCheckHTTPInput 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  ret)void	#xmlCleanupInputCallbacksxmlCleanupInputCallbacks 	(void)void	#xmlCleanupOutputCallbacksxmlCleanupOutputCallbacks 	(void)int	#xmlFileClosexmlFileClose 			(void * context)int	#xmlFileMatchxmlFileMatch 			(const char * filename)void *	#xmlFileOpenxmlFileOpen 			(const char * filename)int	#xmlFileReadxmlFileRead 			(void * context, 					 char * buffer, 					 int len)void	#xmlFreeParserInputBufferxmlFreeParserInputBuffer 	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in)int	#xmlIOFTPClosexmlIOFTPClose 			(void * context)int	#xmlIOFTPMatchxmlIOFTPMatch 			(const char * filename)void *	#xmlIOFTPOpenxmlIOFTPOpen 			(const char * filename)int	#xmlIOFTPReadxmlIOFTPRead 			(void * context, 					 char * buffer, 					 int len)int	#xmlIOHTTPClosexmlIOHTTPClose 			(void * context)int	#xmlIOHTTPMatchxmlIOHTTPMatch 			(const char * filename)void *	#xmlIOHTTPOpenxmlIOHTTPOpen 			(const char * filename)void *	#xmlIOHTTPOpenWxmlIOHTTPOpenW 			(const char * post_uri, 					 int compression)int	#xmlIOHTTPReadxmlIOHTTPRead 			(void * context, 					 char * buffer, 					 int len)Function type: #xmlInputCloseCallbackxmlInputCloseCallback int	
#xmlInputCloseCallbackxmlInputCloseCallback 		(void * context)
Function type: #xmlInputMatchCallbackxmlInputMatchCallback int	
#xmlInputMatchCallbackxmlInputMatchCallback 		(char const * filename)
Function type: #xmlInputOpenCallbackxmlInputOpenCallback void *	
#xmlInputOpenCallbackxmlInputOpenCallback 		(char const * filename)
Function type: #xmlInputReadCallbackxmlInputReadCallback int	
#xmlInputReadCallbackxmlInputReadCallback 		(void * context, 					 char * buffer, 					 int len)
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#xmlNoNetExternalEntityLoaderxmlNoNetExternalEntityLoader 	(const char * URL, 							 const char * ID, 							 libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlNormalizeWindowsPathxmlNormalizeWindowsPath 	(const libxml-xmlstring.html#xmlCharxmlChar  * path)int	#xmlOutputBufferClosexmlOutputBufferClose 		( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out) libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	#xmlOutputBufferCreateBufferxmlOutputBufferCreateBuffer 	( libxml-tree.html#xmlBufferPtrxmlBufferPtr  buffer, 							 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder) libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	#xmlOutputBufferCreateFdxmlOutputBufferCreateFd 	(int fd, 						 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder) libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	#xmlOutputBufferCreateFilexmlOutputBufferCreateFile 	(FILE * file, 							 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder) libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	#xmlOutputBufferCreateFilenamexmlOutputBufferCreateFilename 	(const char * URI, 							 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder, 							 int compression) libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	#xmlOutputBufferCreateIOxmlOutputBufferCreateIO 	( libxml-xmlIO.html#xmlOutputWriteCallbackxmlOutputWriteCallback  iowrite, 						 libxml-xmlIO.html#xmlOutputCloseCallbackxmlOutputCloseCallback  ioclose, 						 void * ioctx, 						 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder)int	#xmlOutputBufferFlushxmlOutputBufferFlush 		( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out)int	#xmlOutputBufferWritexmlOutputBufferWrite 		( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out, 					 int len, 					 const char * buf)int	#xmlOutputBufferWriteEscapexmlOutputBufferWriteEscape 	( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out, 					 const libxml-xmlstring.html#xmlCharxmlChar  * str, 					 libxml-encoding.html#xmlCharEncodingOutputFuncxmlCharEncodingOutputFunc  escaping)int	#xmlOutputBufferWriteStringxmlOutputBufferWriteString 	( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out, 					 const char * str)Function type: #xmlOutputCloseCallbackxmlOutputCloseCallback int	
#xmlOutputCloseCallbackxmlOutputCloseCallback 		(void * context)
Function type: #xmlOutputMatchCallbackxmlOutputMatchCallback int	
#xmlOutputMatchCallbackxmlOutputMatchCallback 		(char const * filename)
Function type: #xmlOutputOpenCallbackxmlOutputOpenCallback void *	
#xmlOutputOpenCallbackxmlOutputOpenCallback 		(char const * filename)
Function type: #xmlOutputWriteCallbackxmlOutputWriteCallback int	
#xmlOutputWriteCallbackxmlOutputWriteCallback 		(void * context, 					 const char * buffer, 					 int len)
char *	#xmlParserGetDirectoryxmlParserGetDirectory 		(const char * filename) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlParserInputBufferCreateFdxmlParserInputBufferCreateFd 	(int fd, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlParserInputBufferCreateFilexmlParserInputBufferCreateFile 	(FILE * file, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlParserInputBufferCreateFilenamexmlParserInputBufferCreateFilename 	(const char * URI, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlParserInputBufferCreateIOxmlParserInputBufferCreateIO 	( libxml-xmlIO.html#xmlInputReadCallbackxmlInputReadCallback  ioread, 							 libxml-xmlIO.html#xmlInputCloseCallbackxmlInputCloseCallback  ioclose, 							 void * ioctx, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlParserInputBufferCreateMemxmlParserInputBufferCreateMem 	(const char * mem, 							 int size, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc) libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	#xmlParserInputBufferCreateStaticxmlParserInputBufferCreateStatic 	(const char * mem, 							 int size, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)int	#xmlParserInputBufferGrowxmlParserInputBufferGrow 	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in, 					 int len)int	#xmlParserInputBufferPushxmlParserInputBufferPush 	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in, 					 int len, 					 const char * buf)int	#xmlParserInputBufferReadxmlParserInputBufferRead 	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in, 					 int len)int	#xmlPopInputCallbacksxmlPopInputCallbacks 		(void)void	#xmlRegisterDefaultInputCallbacksxmlRegisterDefaultInputCallbacks 	(void)void	#xmlRegisterDefaultOutputCallbacksxmlRegisterDefaultOutputCallbacks 	(void)void	#xmlRegisterHTTPPostCallbacksxmlRegisterHTTPPostCallbacks 	(void)int	#xmlRegisterInputCallbacksxmlRegisterInputCallbacks 	( libxml-xmlIO.html#xmlInputMatchCallbackxmlInputMatchCallback  matchFunc, 					 libxml-xmlIO.html#xmlInputOpenCallbackxmlInputOpenCallback  openFunc, 					 libxml-xmlIO.html#xmlInputReadCallbackxmlInputReadCallback  readFunc, 					 libxml-xmlIO.html#xmlInputCloseCallbackxmlInputCloseCallback  closeFunc)int	#xmlRegisterOutputCallbacksxmlRegisterOutputCallbacks 	( libxml-xmlIO.html#xmlOutputMatchCallbackxmlOutputMatchCallback  matchFunc, 					 libxml-xmlIO.html#xmlOutputOpenCallbackxmlOutputOpenCallback  openFunc, 					 libxml-xmlIO.html#xmlOutputWriteCallbackxmlOutputWriteCallback  writeFunc, 					 libxml-xmlIO.html#xmlOutputCloseCallbackxmlOutputCloseCallback  closeFunc)Description
Function: xmlAllocOutputBuffer
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	xmlAllocOutputBuffer	( libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder)Create a buffered parser output
encoder: the encoding converter or NULL Returns: the new parser output or NULL Function: xmlAllocParserInputBuffer
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlAllocParserInputBuffer	( libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for progressive parsing
enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlCheckFilename
int	xmlCheckFilename		(const char * path)function checks to see if @path is a valid source (file, socket...) for XML. if stat is not available on the target machine,
path: the path to check Returns: 1. if stat fails, returns 0 (if calling stat on the filename fails, it can't be right). if stat succeeds and the file is a directory, returns 2. otherwise returns 1. Function: xmlCheckHTTPInput
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	xmlCheckHTTPInput	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  ret)Check an input in case it was created from an HTTP stream, in that case it will handle encoding and update of the base URL in case of redirection. It also checks for HTTP errors in which case the input is cleanly freed up and an appropriate error is raised in context
ctxt: an XML parser context ret: an XML parser input Returns: the input or NULL in case of HTTP error. Function: xmlCleanupInputCallbacks
void	xmlCleanupInputCallbacks	(void)clears the entire input callback table. this includes the compiled-in I/O.
Function: xmlCleanupOutputCallbacks
void	xmlCleanupOutputCallbacks	(void)clears the entire output callback table. this includes the compiled-in I/O callbacks.
Function: xmlFileClose
int	xmlFileClose			(void * context)Close an I/O channel
context: the I/O context Returns: 0 or -1 in case of error Function: xmlFileMatch
int	xmlFileMatch			(const char * filename)input from FILE *
filename: the URI for matching Returns: 1 if matches, 0 otherwise Function: xmlFileOpen
void *	xmlFileOpen			(const char * filename)Wrapper around xmlFileOpen_real that try it with an unescaped version of @filename, if this fails fallback to @filename
filename: the URI for matching Returns: a handler or NULL in case or failure Function: xmlFileRead
int	xmlFileRead			(void * context, 					 char * buffer, 					 int len)Read @len bytes to @buffer from the I/O channel.
context: the I/O context buffer: where to drop data len: number of bytes to write Returns: the number of bytes written or < 0 in case of failure Function: xmlFreeParserInputBuffer
void	xmlFreeParserInputBuffer	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in)Free up the memory used by a buffered parser input
in: a buffered parser input Function: xmlIOFTPClose
int	xmlIOFTPClose			(void * context)Close an FTP I/O channel
context: the I/O context Returns: 0 Function: xmlIOFTPMatch
int	xmlIOFTPMatch			(const char * filename)check if the URI matches an FTP one
filename: the URI for matching Returns: 1 if matches, 0 otherwise Function: xmlIOFTPOpen
void *	xmlIOFTPOpen			(const char * filename)open an FTP I/O channel
filename: the URI for matching Returns: an I/O context or NULL in case of error Function: xmlIOFTPRead
int	xmlIOFTPRead			(void * context, 					 char * buffer, 					 int len)Read @len bytes to @buffer from the I/O channel.
context: the I/O context buffer: where to drop data len: number of bytes to write Returns: the number of bytes written Function: xmlIOHTTPClose
int	xmlIOHTTPClose			(void * context)Close an HTTP I/O channel
context: the I/O context Returns: 0 Function: xmlIOHTTPMatch
int	xmlIOHTTPMatch			(const char * filename)check if the URI matches an HTTP one
filename: the URI for matching Returns: 1 if matches, 0 otherwise Function: xmlIOHTTPOpen
void *	xmlIOHTTPOpen			(const char * filename)open an HTTP I/O channel
filename: the URI for matching Returns: an I/O context or NULL in case of error Function: xmlIOHTTPOpenW
void *	xmlIOHTTPOpenW			(const char * post_uri, 					 int compression)Open a temporary buffer to collect the document for a subsequent HTTP POST request. Non-static as is called from the output buffer creation routine.
post_uri: The destination URI for the document compression: The compression desired for the document. Returns: an I/O context or NULL in case of error. Function: xmlIOHTTPRead
int	xmlIOHTTPRead			(void * context, 					 char * buffer, 					 int len)Read @len bytes to @buffer from the I/O channel.
context: the I/O context buffer: where to drop data len: number of bytes to write Returns: the number of bytes written Function type: xmlInputCloseCallback
Function type: xmlInputCloseCallback
int	xmlInputCloseCallback		(void * context)
Callback used in the I/O Input API to close the resource
context: an Input context Returns: 0 or -1 in case of error Function type: xmlInputMatchCallback
Function type: xmlInputMatchCallback
int	xmlInputMatchCallback		(char const * filename)
Callback used in the I/O Input API to detect if the current handler can provide input fonctionnalities for this resource.
filename: the filename or URI Returns: 1 if yes and 0 if another Input module should be used Function type: xmlInputOpenCallback
Function type: xmlInputOpenCallback
void *	xmlInputOpenCallback		(char const * filename)
Callback used in the I/O Input API to open the resource
filename: the filename or URI Returns: an Input context or NULL in case or error Function type: xmlInputReadCallback
Function type: xmlInputReadCallback
int	xmlInputReadCallback		(void * context, 
					 char * buffer, 					 int len)
Callback used in the I/O Input API to read the resource
context: an Input context buffer: the buffer to store data read len: the length of the buffer in bytes Returns: the number of bytes read or -1 in case of error Function: xmlNoNetExternalEntityLoader
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	xmlNoNetExternalEntityLoader	(const char * URL, 							 const char * ID, 							 libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution.
URL: the URL for the entity to load ID: the System ID for the entity to load ctxt: the context in which the entity is called or NULL Returns: a new allocated xmlParserInputPtr, or NULL. Function: xmlNormalizeWindowsPath
libxml-xmlstring.html#xmlCharxmlChar  *	xmlNormalizeWindowsPath	(const libxml-xmlstring.html#xmlCharxmlChar  * path)This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution.
path: the input file path Returns: a canonicalized version of the path Function: xmlOutputBufferClose
int	xmlOutputBufferClose		( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out)flushes and close the output I/O channel and free up all the associated resources
out: a buffered output Returns: the number of byte written or -1 in case of error. Function: xmlOutputBufferCreateBuffer
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	xmlOutputBufferCreateBuffer	( libxml-tree.html#xmlBufferPtrxmlBufferPtr  buffer, 							 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder)Create a buffered output for the progressive saving to a libxml-tree.html#xmlBufferxmlBuffer 
buffer: a libxml-tree.html#xmlBufferPtrxmlBufferPtr encoder: the encoding converter or NULL Returns: the new parser output or NULL Function: xmlOutputBufferCreateFd
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	xmlOutputBufferCreateFd	(int fd, 						 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder)Create a buffered output for the progressive saving to a file descriptor
fd: a file descriptor number encoder: the encoding converter or NULL Returns: the new parser output or NULL Function: xmlOutputBufferCreateFile
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	xmlOutputBufferCreateFile	(FILE * file, 							 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder)Create a buffered output for the progressive saving to a FILE * buffered C I/O
file: a FILE* encoder: the encoding converter or NULL Returns: the new parser output or NULL Function: xmlOutputBufferCreateFilename
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	xmlOutputBufferCreateFilename	(const char * URI, 							 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder, 							 int compression)Create a buffered output for the progressive saving of a file If filename is "-' then we use stdout as the output. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. TODO: currently if compression is set, the library only support writing to a local file.
URI: a C string containing the URI or filename encoder: the encoding converter or NULL compression: the compression ration (0 none, 9 max). Returns: the new output or NULL Function: xmlOutputBufferCreateIO
libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr 	xmlOutputBufferCreateIO	( libxml-xmlIO.html#xmlOutputWriteCallbackxmlOutputWriteCallback  iowrite, 						 libxml-xmlIO.html#xmlOutputCloseCallbackxmlOutputCloseCallback  ioclose, 						 void * ioctx, 						 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  encoder)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		( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  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		( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  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	( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out, 					 const libxml-xmlstring.html#xmlCharxmlChar  * str, 					 libxml-encoding.html#xmlCharEncodingOutputFuncxmlCharEncodingOutputFunc  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.
out: a buffered parser output str: a zero terminated UTF-8 string escaping: an optional escaping function (or NULL) Returns: the number of chars immediately written, or -1 in case of error. Function: xmlOutputBufferWriteString
int	xmlOutputBufferWriteString	( libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  out, 					 const char * str)Write the content of the string 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 str: a zero terminated C string Returns: the number of chars immediately written, or -1 in case of error. Function type: xmlOutputCloseCallback
Function type: xmlOutputCloseCallback
int	xmlOutputCloseCallback		(void * context)
Callback used in the I/O Output API to close the resource
context: an Output context Returns: 0 or -1 in case of error Function type: xmlOutputMatchCallback
Function type: xmlOutputMatchCallback
int	xmlOutputMatchCallback		(char const * filename)
Callback used in the I/O Output API to detect if the current handler can provide output fonctionnalities for this resource.
filename: the filename or URI Returns: 1 if yes and 0 if another Output module should be used Function type: xmlOutputOpenCallback
Function type: xmlOutputOpenCallback
void *	xmlOutputOpenCallback		(char const * filename)
Callback used in the I/O Output API to open the resource
filename: the filename or URI Returns: an Output context or NULL in case or error Function type: xmlOutputWriteCallback
Function type: xmlOutputWriteCallback
int	xmlOutputWriteCallback		(void * context, 
					 const char * buffer, 					 int len)
Callback used in the I/O Output API to write to the resource
context: an Output context buffer: the buffer of data to write len: the length of the buffer in bytes Returns: the number of bytes written or -1 in case of error Function: xmlParserGetDirectory
char *	xmlParserGetDirectory		(const char * filename)lookup the directory for that file
filename: the path to a file Returns: a new allocated string containing the directory, or NULL. Function: xmlParserInputBufferCreateFd
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlParserInputBufferCreateFd	(int fd, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for the progressive parsing for the input from a file descriptor
fd: a file descriptor number enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlParserInputBufferCreateFile
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlParserInputBufferCreateFile	(FILE * file, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for the progressive parsing of a FILE * buffered C I/O
file: a FILE* enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlParserInputBufferCreateFilename
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlParserInputBufferCreateFilename	(const char * URI, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for the progressive parsing of a file If filename is "-' then we use stdin as the input. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Do an encoding check if enc == libxml-encoding.html#XML_CHAR_ENCODING_NONEXML_CHAR_ENCODING_NONE 
URI: a C string containing the URI or filename enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlParserInputBufferCreateIO
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlParserInputBufferCreateIO	( libxml-xmlIO.html#xmlInputReadCallbackxmlInputReadCallback  ioread, 							 libxml-xmlIO.html#xmlInputCloseCallbackxmlInputCloseCallback  ioclose, 							 void * ioctx, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for the progressive parsing for the input from an I/O handler
ioread: an I/O read function ioclose: an I/O close function ioctx: an I/O handler enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlParserInputBufferCreateMem
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlParserInputBufferCreateMem	(const char * mem, 							 int size, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for the progressive parsing for the input from a memory area.
mem: the memory input size: the length of the memory block enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlParserInputBufferCreateStatic
libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr 	xmlParserInputBufferCreateStatic	(const char * mem, 							 int size, 							 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)Create a buffered parser input for the progressive parsing for the input from an immutable memory area. This will not copy the memory area to the buffer, but the memory is expected to be available until the end of the parsing, this is useful for example when using mmap'ed file.
mem: the memory input size: the length of the memory block enc: the charset encoding if known Returns: the new parser input or NULL Function: xmlParserInputBufferGrow
int	xmlParserInputBufferGrow	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in, 					 int len)Grow up the content of the input buffer, the old data are preserved This routine handle the I18N transcoding to internal UTF-8 This routine is used when operating the parser in normal (pull) mode TODO: one should be able to remove one extra copy by copying directly onto in->buffer or in->raw
in: a buffered parser input len: indicative value of the amount of chars to read Returns: the number of chars read and stored in the buffer, or -1 in case of error. Function: xmlParserInputBufferPush
int	xmlParserInputBufferPush	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in, 					 int len, 					 const char * buf)Push the content of the arry in the input buffer This routine handle the I18N transcoding to internal UTF-8 This is used when operating the parser in progressive (push) mode.
in: a buffered parser input len: the size in bytes of the array. buf: an char array Returns: the number of chars read and stored in the buffer, or -1 in case of error. Function: xmlParserInputBufferRead
int	xmlParserInputBufferRead	( libxml-tree.html#xmlParserInputBufferPtrxmlParserInputBufferPtr  in, 					 int len)Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8
in: a buffered parser input len: indicative value of the amount of chars to read Returns: the number of chars read and stored in the buffer, or -1 in case of error. Function: xmlPopInputCallbacks
int	xmlPopInputCallbacks		(void)Clear the top input callback from the input stack. this includes the compiled-in I/O.
Returns: the number of input callback registered or -1 in case of error. Function: xmlRegisterDefaultInputCallbacks
void	xmlRegisterDefaultInputCallbacks	(void)Registers the default compiled-in I/O handlers.
Function: xmlRegisterDefaultOutputCallbacks
void	xmlRegisterDefaultOutputCallbacks	(void)Registers the default compiled-in I/O handlers.
Function: xmlRegisterHTTPPostCallbacks
void	xmlRegisterHTTPPostCallbacks	(void)By default, libxml submits HTTP output requests using the "PUT" method. Calling this method changes the HTTP output method to use the "POST" method instead.
Function: xmlRegisterInputCallbacks
int	xmlRegisterInputCallbacks	( libxml-xmlIO.html#xmlInputMatchCallbackxmlInputMatchCallback  matchFunc, 					 libxml-xmlIO.html#xmlInputOpenCallbackxmlInputOpenCallback  openFunc, 					 libxml-xmlIO.html#xmlInputReadCallbackxmlInputReadCallback  readFunc, 					 libxml-xmlIO.html#xmlInputCloseCallbackxmlInputCloseCallback  closeFunc)Register a new set of I/O callback for handling parser input.
matchFunc: the libxml-xmlIO.html#xmlInputMatchCallbackxmlInputMatchCallback openFunc: the libxml-xmlIO.html#xmlInputOpenCallbackxmlInputOpenCallback readFunc: the libxml-xmlIO.html#xmlInputReadCallbackxmlInputReadCallback closeFunc: the libxml-xmlIO.html#xmlInputCloseCallbackxmlInputCloseCallback Returns: the registered handler number or -1 in case of error Function: xmlRegisterOutputCallbacks
int	xmlRegisterOutputCallbacks	( libxml-xmlIO.html#xmlOutputMatchCallbackxmlOutputMatchCallback  matchFunc, 					 libxml-xmlIO.html#xmlOutputOpenCallbackxmlOutputOpenCallback  openFunc, 					 libxml-xmlIO.html#xmlOutputWriteCallbackxmlOutputWriteCallback  writeFunc, 					 libxml-xmlIO.html#xmlOutputCloseCallbackxmlOutputCloseCallback  closeFunc)Register a new set of I/O callback for handling output.
matchFunc: the libxml-xmlIO.html#xmlOutputMatchCallbackxmlOutputMatchCallback openFunc: the libxml-xmlIO.html#xmlOutputOpenCallbackxmlOutputOpenCallback writeFunc: the libxml-xmlIO.html#xmlOutputWriteCallbackxmlOutputWriteCallback closeFunc: the libxml-xmlIO.html#xmlOutputCloseCallbackxmlOutputCloseCallback Returns: the registered handler number or -1 in case of error ../bugs.htmlDaniel Veillard 
