|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
|
|
Packit Service |
a31ea6 |
TD {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
|
|
Packit Service |
a31ea6 |
H1 {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
H2 {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
H3 {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
A:link, A:visited, A:active { text-decoration: underline }
|
|
Packit Service |
a31ea6 |
</style><style type="text/css">
|
|
Packit Service |
a31ea6 |
div.deprecated pre.programlisting {border-style: double;border-color:red}
|
|
Packit Service |
a31ea6 |
pre.programlisting {border-style: double;background: #EECFA1}
|
|
Packit Service |
a31ea6 |
</style><title>Module xmlIO from libxml2</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000"> | | Module xmlIO from libxml2 |
|
|
<center>API Menu</center> | <form action="../search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form> |
<center>API Indexes</center> | |
<center>Related links</center> | |
|
| |
|
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlAllocParserInputBuffer (xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
int xmlCheckFilename (const char * path)
|
|
Packit Service |
a31ea6 |
xmlParserInputPtr xmlCheckHTTPInput (xmlParserCtxtPtr ctxt, xmlParserInputPtr ret)
|
|
Packit Service |
a31ea6 |
void xmlCleanupInputCallbacks (void)
|
|
Packit Service |
a31ea6 |
void xmlCleanupOutputCallbacks (void)
|
|
Packit Service |
a31ea6 |
int xmlFileClose (void * context)
|
|
Packit Service |
a31ea6 |
int xmlFileMatch (const char * filename)
|
|
Packit Service |
a31ea6 |
void * xmlFileOpen (const char * filename)
|
|
Packit Service |
a31ea6 |
int xmlFileRead (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
void xmlFreeParserInputBuffer (xmlParserInputBufferPtr in)
|
|
Packit Service |
a31ea6 |
int xmlIOFTPClose (void * context)
|
|
Packit Service |
a31ea6 |
int xmlIOFTPMatch (const char * filename)
|
|
Packit Service |
a31ea6 |
void * xmlIOFTPOpen (const char * filename)
|
|
Packit Service |
a31ea6 |
int xmlIOFTPRead (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
int xmlIOHTTPClose (void * context)
|
|
Packit Service |
a31ea6 |
int xmlIOHTTPMatch (const char * filename)
|
|
Packit Service |
a31ea6 |
void * xmlIOHTTPOpen (const char * filename)
|
|
Packit Service |
a31ea6 |
void * xmlIOHTTPOpenW (const char * post_uri, int compression)
|
|
Packit Service |
a31ea6 |
int xmlIOHTTPRead (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
Function type: xmlInputCloseCallback
|
|
Packit Service |
a31ea6 |
int xmlInputCloseCallback (void * context)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlInputMatchCallback
|
|
Packit Service |
a31ea6 |
int xmlInputMatchCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlInputOpenCallback
|
|
Packit Service |
a31ea6 |
void * xmlInputOpenCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlInputReadCallback
|
|
Packit Service |
a31ea6 |
int xmlInputReadCallback (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
xmlParserInputPtr xmlNoNetExternalEntityLoader (const char * URL, const char * ID, xmlParserCtxtPtr ctxt)
|
|
Packit Service |
a31ea6 |
xmlChar * xmlNormalizeWindowsPath (const xmlChar * path)
|
|
Packit Service |
a31ea6 |
int xmlOutputBufferClose (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
xmlOutputBufferPtr xmlOutputBufferCreateBuffer (xmlBufferPtr buffer, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
xmlOutputBufferPtr xmlOutputBufferCreateFd (int fd, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
xmlOutputBufferPtr xmlOutputBufferCreateFile (FILE * file, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
xmlOutputBufferPtr xmlOutputBufferCreateFilename (const char * URI, xmlCharEncodingHandlerPtr encoder, int compression)
|
|
Packit Service |
a31ea6 |
xmlOutputBufferPtr xmlOutputBufferCreateIO (xmlOutputWriteCallback iowrite, xmlOutputCloseCallback ioclose, void * ioctx, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
int xmlOutputBufferFlush (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
const xmlChar * xmlOutputBufferGetContent (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
size_t xmlOutputBufferGetSize (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
int xmlOutputBufferWrite (xmlOutputBufferPtr out, int len, const char * buf)
|
|
Packit Service |
a31ea6 |
int xmlOutputBufferWriteEscape (xmlOutputBufferPtr out, const xmlChar * str, xmlCharEncodingOutputFunc escaping)
|
|
Packit Service |
a31ea6 |
int xmlOutputBufferWriteString (xmlOutputBufferPtr out, const char * str)
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputCloseCallback
|
|
Packit Service |
a31ea6 |
int xmlOutputCloseCallback (void * context)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputMatchCallback
|
|
Packit Service |
a31ea6 |
int xmlOutputMatchCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputOpenCallback
|
|
Packit Service |
a31ea6 |
void * xmlOutputOpenCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputWriteCallback
|
|
Packit Service |
a31ea6 |
int xmlOutputWriteCallback (void * context, const char * buffer, int len)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
char * xmlParserGetDirectory (const char * filename)
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlParserInputBufferCreateFd (int fd, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlParserInputBufferCreateFile (FILE * file, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlParserInputBufferCreateFilename (const char * URI, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlParserInputBufferCreateIO (xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void * ioctx, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlParserInputBufferCreateMem (const char * mem, int size, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
xmlParserInputBufferPtr xmlParserInputBufferCreateStatic (const char * mem, int size, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
int xmlParserInputBufferGrow (xmlParserInputBufferPtr in, int len)
|
|
Packit Service |
a31ea6 |
int xmlParserInputBufferPush (xmlParserInputBufferPtr in, int len, const char * buf)
|
|
Packit Service |
a31ea6 |
int xmlParserInputBufferRead (xmlParserInputBufferPtr in, int len)
|
|
Packit Service |
a31ea6 |
int xmlPopInputCallbacks (void)
|
|
Packit Service |
a31ea6 |
void xmlRegisterDefaultInputCallbacks (void)
|
|
Packit Service |
a31ea6 |
void xmlRegisterDefaultOutputCallbacks (void)
|
|
Packit Service |
a31ea6 |
void xmlRegisterHTTPPostCallbacks (void)
|
|
Packit Service |
a31ea6 |
int xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc, xmlInputOpenCallback openFunc, xmlInputReadCallback readFunc, xmlInputCloseCallback closeFunc)
|
|
Packit Service |
a31ea6 |
int xmlRegisterOutputCallbacks (xmlOutputMatchCallback matchFunc, xmlOutputOpenCallback openFunc, xmlOutputWriteCallback writeFunc, xmlOutputCloseCallback closeFunc)
|
|
Packit Service |
a31ea6 |
Description
|
|
Packit Service |
a31ea6 |
Function: xmlAllocOutputBufferxmlOutputBufferPtr xmlAllocOutputBuffer (xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
Create a buffered parser output
|
|
Packit Service |
a31ea6 |
<tt>encoder</tt>: | the encoding converter or NULL | <tt>Returns</tt>: | the new parser output or NULL |
Function: xmlAllocParserInputBufferxmlParserInputBufferPtr xmlAllocParserInputBuffer (xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
Create a buffered parser input for progressive parsing
|
|
Packit Service |
a31ea6 |
<tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlCheckFilenameint xmlCheckFilename (const char * path)
|
|
Packit Service |
a31ea6 |
function checks to see if @path is a valid source (file, socket...) for XML. if stat is not available on the target machine,
|
|
Packit Service |
a31ea6 |
<tt>path</tt>: | the path to check | <tt>Returns</tt>: | 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: xmlCheckHTTPInputxmlParserInputPtr xmlCheckHTTPInput (xmlParserCtxtPtr ctxt, xmlParserInputPtr ret)
|
|
Packit Service |
a31ea6 |
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
|
|
Packit Service |
a31ea6 |
<tt>ctxt</tt>: | an XML parser context | <tt>ret</tt>: | an XML parser input | <tt>Returns</tt>: | the input or NULL in case of HTTP error. |
Function: xmlCleanupInputCallbacksvoid xmlCleanupInputCallbacks (void)
|
|
Packit Service |
a31ea6 |
clears the entire input callback table. this includes the compiled-in I/O.
|
|
Packit Service |
a31ea6 |
Function: xmlCleanupOutputCallbacksvoid xmlCleanupOutputCallbacks (void)
|
|
Packit Service |
a31ea6 |
clears the entire output callback table. this includes the compiled-in I/O callbacks.
|
|
Packit Service |
a31ea6 |
Function: xmlFileCloseint xmlFileClose (void * context)
|
|
Packit Service |
a31ea6 |
Close an I/O channel
|
|
Packit Service |
a31ea6 |
<tt>context</tt>: | the I/O context | <tt>Returns</tt>: | 0 or -1 in case of error |
Function: xmlFileMatchint xmlFileMatch (const char * filename)
|
|
Packit Service |
a31ea6 |
input from FILE *
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the URI for matching | <tt>Returns</tt>: | 1 if matches, 0 otherwise |
Function: xmlFileOpenvoid * xmlFileOpen (const char * filename)
|
|
Packit Service |
a31ea6 |
Wrapper around xmlFileOpen_real that try it with an unescaped version of @filename, if this fails fallback to @filename
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the URI for matching | <tt>Returns</tt>: | a handler or NULL in case or failure |
Function: xmlFileReadint xmlFileRead (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
Read @len bytes to @buffer from the I/O channel.
|
|
Packit Service |
a31ea6 |
<tt>context</tt>: | the I/O context | <tt>buffer</tt>: | where to drop data | <tt>len</tt>: | number of bytes to write | <tt>Returns</tt>: | the number of bytes written or < 0 in case of failure |
Function: xmlFreeParserInputBuffervoid xmlFreeParserInputBuffer (xmlParserInputBufferPtr in)
|
|
Packit Service |
a31ea6 |
Free up the memory used by a buffered parser input
|
|
Packit Service |
a31ea6 |
<tt>in</tt>: | a buffered parser input |
Function: xmlIOFTPCloseint xmlIOFTPClose (void * context)
|
|
Packit Service |
a31ea6 |
Close an FTP I/O channel
|
|
Packit Service |
a31ea6 |
<tt>context</tt>: | the I/O context | <tt>Returns</tt>: | 0 |
Function: xmlIOFTPMatchint xmlIOFTPMatch (const char * filename)
|
|
Packit Service |
a31ea6 |
check if the URI matches an FTP one
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the URI for matching | <tt>Returns</tt>: | 1 if matches, 0 otherwise |
Function: xmlIOFTPOpenvoid * xmlIOFTPOpen (const char * filename)
|
|
Packit Service |
a31ea6 |
open an FTP I/O channel
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the URI for matching | <tt>Returns</tt>: | an I/O context or NULL in case of error |
Function: xmlIOFTPReadint xmlIOFTPRead (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
Read @len bytes to @buffer from the I/O channel.
|
|
Packit Service |
a31ea6 |
<tt>context</tt>: | the I/O context | <tt>buffer</tt>: | where to drop data | <tt>len</tt>: | number of bytes to write | <tt>Returns</tt>: | the number of bytes written |
Function: xmlIOHTTPCloseint xmlIOHTTPClose (void * context)
|
|
Packit Service |
a31ea6 |
Close an HTTP I/O channel
|
|
Packit Service |
a31ea6 |
<tt>context</tt>: | the I/O context | <tt>Returns</tt>: | 0 |
Function: xmlIOHTTPMatchint xmlIOHTTPMatch (const char * filename)
|
|
Packit Service |
a31ea6 |
check if the URI matches an HTTP one
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the URI for matching | <tt>Returns</tt>: | 1 if matches, 0 otherwise |
Function: xmlIOHTTPOpenvoid * xmlIOHTTPOpen (const char * filename)
|
|
Packit Service |
a31ea6 |
open an HTTP I/O channel
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the URI for matching | <tt>Returns</tt>: | an I/O context or NULL in case of error |
Function: xmlIOHTTPOpenWvoid * xmlIOHTTPOpenW (const char * post_uri, int compression)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>post_uri</tt>: | The destination URI for the document | <tt>compression</tt>: | The compression desired for the document. | <tt>Returns</tt>: | an I/O context or NULL in case of error. |
Function: xmlIOHTTPReadint xmlIOHTTPRead (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
Read @len bytes to @buffer from the I/O channel.
|
|
Packit Service |
a31ea6 |
<tt>context</tt>: | the I/O context | <tt>buffer</tt>: | where to drop data | <tt>len</tt>: | number of bytes to write | <tt>Returns</tt>: | the number of bytes written |
Function type: xmlInputCloseCallbackFunction type: xmlInputCloseCallback
|
|
Packit Service |
a31ea6 |
int xmlInputCloseCallback (void * context)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Input API to close the resource <tt>context</tt>: | an Input context | <tt>Returns</tt>: | 0 or -1 in case of error |
|
|
Packit Service |
a31ea6 |
Function type: xmlInputMatchCallbackFunction type: xmlInputMatchCallback
|
|
Packit Service |
a31ea6 |
int xmlInputMatchCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Input API to detect if the current handler can provide input fonctionnalities for this resource. <tt>filename</tt>: | the filename or URI | <tt>Returns</tt>: | 1 if yes and 0 if another Input module should be used |
|
|
Packit Service |
a31ea6 |
Function type: xmlInputOpenCallbackFunction type: xmlInputOpenCallback
|
|
Packit Service |
a31ea6 |
void * xmlInputOpenCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Input API to open the resource <tt>filename</tt>: | the filename or URI | <tt>Returns</tt>: | an Input context or NULL in case or error |
|
|
Packit Service |
a31ea6 |
Function type: xmlInputReadCallbackFunction type: xmlInputReadCallback
|
|
Packit Service |
a31ea6 |
int xmlInputReadCallback (void * context, char * buffer, int len)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Input API to read the resource <tt>context</tt>: | an Input context | <tt>buffer</tt>: | the buffer to store data read | <tt>len</tt>: | the length of the buffer in bytes | <tt>Returns</tt>: | the number of bytes read or -1 in case of error |
|
|
Packit Service |
a31ea6 |
Function: xmlNoNetExternalEntityLoaderxmlParserInputPtr xmlNoNetExternalEntityLoader (const char * URL, const char * ID, xmlParserCtxtPtr ctxt)
|
|
Packit Service |
a31ea6 |
A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution.
|
|
Packit Service |
a31ea6 |
<tt>URL</tt>: | the URL for the entity to load | <tt>ID</tt>: | the System ID for the entity to load | <tt>ctxt</tt>: | the context in which the entity is called or NULL | <tt>Returns</tt>: | a new allocated xmlParserInputPtr, or NULL. |
Function: xmlNormalizeWindowsPathxmlChar * xmlNormalizeWindowsPath (const xmlChar * path)
|
|
Packit Service |
a31ea6 |
This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution.
|
|
Packit Service |
a31ea6 |
<tt>path</tt>: | the input file path | <tt>Returns</tt>: | a canonicalized version of the path |
Function: xmlOutputBufferCloseint xmlOutputBufferClose (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
flushes and close the output I/O channel and free up all the associated resources
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | a buffered output | <tt>Returns</tt>: | the number of byte written or -1 in case of error. |
Function: xmlOutputBufferCreateBufferxmlOutputBufferPtr xmlOutputBufferCreateBuffer (xmlBufferPtr buffer, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
Create a buffered output for the progressive saving to a xmlBuffer
|
|
Packit Service |
a31ea6 |
<tt>buffer</tt>: | a xmlBufferPtr | <tt>encoder</tt>: | the encoding converter or NULL | <tt>Returns</tt>: | the new parser output or NULL |
Function: xmlOutputBufferCreateFdxmlOutputBufferPtr xmlOutputBufferCreateFd (int fd, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
Create a buffered output for the progressive saving to a file descriptor
|
|
Packit Service |
a31ea6 |
<tt>fd</tt>: | a file descriptor number | <tt>encoder</tt>: | the encoding converter or NULL | <tt>Returns</tt>: | the new parser output or NULL |
Function: xmlOutputBufferCreateFilexmlOutputBufferPtr xmlOutputBufferCreateFile (FILE * file, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
Create a buffered output for the progressive saving to a FILE * buffered C I/O
|
|
Packit Service |
a31ea6 |
<tt>file</tt>: | a FILE* | <tt>encoder</tt>: | the encoding converter or NULL | <tt>Returns</tt>: | the new parser output or NULL |
Function: xmlOutputBufferCreateFilenamexmlOutputBufferPtr xmlOutputBufferCreateFilename (const char * URI, xmlCharEncodingHandlerPtr encoder, int compression)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>URI</tt>: | a C string containing the URI or filename | <tt>encoder</tt>: | the encoding converter or NULL | <tt>compression</tt>: | the compression ration (0 none, 9 max). | <tt>Returns</tt>: | the new output or NULL |
Function: xmlOutputBufferCreateIOxmlOutputBufferPtr xmlOutputBufferCreateIO (xmlOutputWriteCallback iowrite, xmlOutputCloseCallback ioclose, void * ioctx, xmlCharEncodingHandlerPtr encoder)
|
|
Packit Service |
a31ea6 |
Create a buffered output for the progressive saving to an I/O handler
|
|
Packit Service |
a31ea6 |
<tt>iowrite</tt>: | an I/O write function | <tt>ioclose</tt>: | an I/O close function | <tt>ioctx</tt>: | an I/O handler | <tt>encoder</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser output or NULL |
Function: xmlOutputBufferFlushint xmlOutputBufferFlush (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
flushes the output I/O channel
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | a buffered output | <tt>Returns</tt>: | the number of byte written or -1 in case of error. |
Function: xmlOutputBufferGetContentconst xmlChar * xmlOutputBufferGetContent (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
Gives a pointer to the data currently held in the output buffer
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | an xmlOutputBufferPtr | <tt>Returns</tt>: | a pointer to the data or NULL in case of error |
Function: xmlOutputBufferGetSizesize_t xmlOutputBufferGetSize (xmlOutputBufferPtr out)
|
|
Packit Service |
a31ea6 |
Gives the length of the data currently held in the output buffer
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | an xmlOutputBufferPtr | <tt>Returns</tt>: | 0 in case or error or no data is held, the size otherwise |
Function: xmlOutputBufferWriteint xmlOutputBufferWrite (xmlOutputBufferPtr out, int len, const char * buf)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | a buffered parser output | <tt>len</tt>: | the size in bytes of the array. | <tt>buf</tt>: | an char array | <tt>Returns</tt>: | the number of chars immediately written, or -1 in case of error. |
Function: xmlOutputBufferWriteEscapeint xmlOutputBufferWriteEscape (xmlOutputBufferPtr out, const xmlChar * str, xmlCharEncodingOutputFunc escaping)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | a buffered parser output | <tt>str</tt>: | a zero terminated UTF-8 string | <tt>escaping</tt>: | an optional escaping function (or NULL) | <tt>Returns</tt>: | the number of chars immediately written, or -1 in case of error. |
Function: xmlOutputBufferWriteStringint xmlOutputBufferWriteString (xmlOutputBufferPtr out, const char * str)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>out</tt>: | a buffered parser output | <tt>str</tt>: | a zero terminated C string | <tt>Returns</tt>: | the number of chars immediately written, or -1 in case of error. |
Function type: xmlOutputCloseCallbackFunction type: xmlOutputCloseCallback
|
|
Packit Service |
a31ea6 |
int xmlOutputCloseCallback (void * context)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Output API to close the resource <tt>context</tt>: | an Output context | <tt>Returns</tt>: | 0 or -1 in case of error |
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputMatchCallbackFunction type: xmlOutputMatchCallback
|
|
Packit Service |
a31ea6 |
int xmlOutputMatchCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Output API to detect if the current handler can provide output fonctionnalities for this resource. <tt>filename</tt>: | the filename or URI | <tt>Returns</tt>: | 1 if yes and 0 if another Output module should be used |
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputOpenCallbackFunction type: xmlOutputOpenCallback
|
|
Packit Service |
a31ea6 |
void * xmlOutputOpenCallback (char const * filename)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Output API to open the resource <tt>filename</tt>: | the filename or URI | <tt>Returns</tt>: | an Output context or NULL in case or error |
|
|
Packit Service |
a31ea6 |
Function type: xmlOutputWriteCallbackFunction type: xmlOutputWriteCallback
|
|
Packit Service |
a31ea6 |
int xmlOutputWriteCallback (void * context, const char * buffer, int len)
|
|
Packit Service |
a31ea6 |
Callback used in the I/O Output API to write to the resource <tt>context</tt>: | an Output context | <tt>buffer</tt>: | the buffer of data to write | <tt>len</tt>: | the length of the buffer in bytes | <tt>Returns</tt>: | the number of bytes written or -1 in case of error |
|
|
Packit Service |
a31ea6 |
Function: xmlParserGetDirectorychar * xmlParserGetDirectory (const char * filename)
|
|
Packit Service |
a31ea6 |
lookup the directory for that file
|
|
Packit Service |
a31ea6 |
<tt>filename</tt>: | the path to a file | <tt>Returns</tt>: | a new allocated string containing the directory, or NULL. |
Function: xmlParserInputBufferCreateFdxmlParserInputBufferPtr xmlParserInputBufferCreateFd (int fd, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
Create a buffered parser input for the progressive parsing for the input from a file descriptor
|
|
Packit Service |
a31ea6 |
<tt>fd</tt>: | a file descriptor number | <tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlParserInputBufferCreateFilexmlParserInputBufferPtr xmlParserInputBufferCreateFile (FILE * file, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
Create a buffered parser input for the progressive parsing of a FILE * buffered C I/O
|
|
Packit Service |
a31ea6 |
<tt>file</tt>: | a FILE* | <tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlParserInputBufferCreateFilenamexmlParserInputBufferPtr xmlParserInputBufferCreateFilename (const char * URI, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
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 == XML_CHAR_ENCODING_NONE
|
|
Packit Service |
a31ea6 |
<tt>URI</tt>: | a C string containing the URI or filename | <tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlParserInputBufferCreateIOxmlParserInputBufferPtr xmlParserInputBufferCreateIO (xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void * ioctx, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
Create a buffered parser input for the progressive parsing for the input from an I/O handler
|
|
Packit Service |
a31ea6 |
<tt>ioread</tt>: | an I/O read function | <tt>ioclose</tt>: | an I/O close function | <tt>ioctx</tt>: | an I/O handler | <tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlParserInputBufferCreateMemxmlParserInputBufferPtr xmlParserInputBufferCreateMem (const char * mem, int size, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
Create a buffered parser input for the progressive parsing for the input from a memory area.
|
|
Packit Service |
a31ea6 |
<tt>mem</tt>: | the memory input | <tt>size</tt>: | the length of the memory block | <tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlParserInputBufferCreateStaticxmlParserInputBufferPtr xmlParserInputBufferCreateStatic (const char * mem, int size, xmlCharEncoding enc)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>mem</tt>: | the memory input | <tt>size</tt>: | the length of the memory block | <tt>enc</tt>: | the charset encoding if known | <tt>Returns</tt>: | the new parser input or NULL |
Function: xmlParserInputBufferGrowint xmlParserInputBufferGrow (xmlParserInputBufferPtr in, int len)
|
|
Packit Service |
a31ea6 |
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
|
|
Packit Service |
a31ea6 |
<tt>in</tt>: | a buffered parser input | <tt>len</tt>: | indicative value of the amount of chars to read | <tt>Returns</tt>: | the number of chars read and stored in the buffer, or -1 in case of error. |
Function: xmlParserInputBufferPushint xmlParserInputBufferPush (xmlParserInputBufferPtr in, int len, const char * buf)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
<tt>in</tt>: | a buffered parser input | <tt>len</tt>: | the size in bytes of the array. | <tt>buf</tt>: | an char array | <tt>Returns</tt>: | the number of chars read and stored in the buffer, or -1 in case of error. |
Function: xmlParserInputBufferReadint xmlParserInputBufferRead (xmlParserInputBufferPtr in, int len)
|
|
Packit Service |
a31ea6 |
Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8
|
|
Packit Service |
a31ea6 |
<tt>in</tt>: | a buffered parser input | <tt>len</tt>: | indicative value of the amount of chars to read | <tt>Returns</tt>: | the number of chars read and stored in the buffer, or -1 in case of error. |
Function: xmlPopInputCallbacksint xmlPopInputCallbacks (void)
|
|
Packit Service |
a31ea6 |
Clear the top input callback from the input stack. this includes the compiled-in I/O.
|
|
Packit Service |
a31ea6 |
<tt>Returns</tt>: | the number of input callback registered or -1 in case of error. |
Function: xmlRegisterDefaultInputCallbacksvoid xmlRegisterDefaultInputCallbacks (void)
|
|
Packit Service |
a31ea6 |
Registers the default compiled-in I/O handlers.
|
|
Packit Service |
a31ea6 |
Function: xmlRegisterDefaultOutputCallbacksvoid xmlRegisterDefaultOutputCallbacks (void)
|
|
Packit Service |
a31ea6 |
Registers the default compiled-in I/O handlers.
|
|
Packit Service |
a31ea6 |
Function: xmlRegisterHTTPPostCallbacksvoid xmlRegisterHTTPPostCallbacks (void)
|
|
Packit Service |
a31ea6 |
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.
|
|
Packit Service |
a31ea6 |
Function: xmlRegisterInputCallbacksint xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc, xmlInputOpenCallback openFunc, xmlInputReadCallback readFunc, xmlInputCloseCallback closeFunc)
|
|
Packit Service |
a31ea6 |
Register a new set of I/O callback for handling parser input.
|
|
Packit Service |
a31ea6 |
Function: xmlRegisterOutputCallbacksint xmlRegisterOutputCallbacks (xmlOutputMatchCallback matchFunc, xmlOutputOpenCallback openFunc, xmlOutputWriteCallback writeFunc, xmlOutputCloseCallback closeFunc)
|
|
Packit Service |
a31ea6 |
Register a new set of I/O callback for handling output.
|
|
Packit Service |
a31ea6 |
Daniel Veillard </body></html>
|