Details
xmlInputMatchCallback ()
int (*xmlInputMatchCallback) (char const *filename); |
xmlInputOpenCallback ()
void* (*xmlInputOpenCallback) (char const *filename); |
xmlInputReadCallback ()
int (*xmlInputReadCallback) (void *context,
char *buffer,
int len); |
xmlInputCloseCallback ()
int (*xmlInputCloseCallback) (void *context); |
struct xmlParserInputBuffer
struct xmlParserInputBuffer {
void* context;
xmlInputReadCallback readcallback;
xmlInputCloseCallback closecallback;
xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
xmlBufferPtr raw; /* if encoder != NULL buffer for raw input */
}; |
xmlParserInputBufferPtr
typedef xmlParserInputBuffer *xmlParserInputBufferPtr; |
xmlOutputMatchCallback ()
int (*xmlOutputMatchCallback) (char const *filename); |
xmlOutputOpenCallback ()
void* (*xmlOutputOpenCallback) (char const *filename); |
xmlOutputWriteCallback ()
int (*xmlOutputWriteCallback) (void *context,
const char *buffer,
int len); |
xmlOutputCloseCallback ()
int (*xmlOutputCloseCallback) (void *context); |
struct xmlOutputBuffer
struct xmlOutputBuffer {
void* context;
xmlOutputWriteCallback writecallback;
xmlOutputCloseCallback closecallback;
xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 or ISOLatin */
xmlBufferPtr conv; /* if encoder != NULL buffer for output */
int written; /* total number of byte written */
}; |
xmlOutputBufferPtr
typedef xmlOutputBuffer *xmlOutputBufferPtr; |
xmlRegisterDefaultInputCallbacks ()
void xmlRegisterDefaultInputCallbacks
(void); |
Registers the default compiled-in I/O handlers.
xmlAllocParserInputBuffer ()
Create a buffered parser input for progressive parsing
xmlParserInputBufferCreateFilename ()
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
xmlParserInputBufferCreateFile ()
Create a buffered parser input for the progressive parsing of a FILE *
buffered C I/O
xmlParserInputBufferCreateFd ()
Create a buffered parser input for the progressive parsing for the input
from a file descriptor
xmlParserInputBufferCreateMem ()
Create a buffered parser input for the progressive parsing for the input
from a memory area.
xmlParserInputBufferCreateIO ()
Create a buffered parser input for the progressive parsing for the input
from an I/O handler
xmlParserInputBufferRead ()
Refresh the content of the input buffer, the old data are considered
consumed
This routine handle the I18N transcoding to internal UTF-8
xmlParserInputBufferGrow ()
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 directy
onto in->buffer or in->raw
xmlParserInputBufferPush ()
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.
xmlFreeParserInputBuffer ()
Free up the memory used by a buffered parser input
xmlParserGetDirectory ()
char* xmlParserGetDirectory (const char *filename); |
lookup the directory for that file
xmlRegisterInputCallbacks ()
Register a new set of I/O callback for handling parser input.
xmlRegisterDefaultOutputCallbacks ()
void xmlRegisterDefaultOutputCallbacks
(void); |
Registers the default compiled-in I/O handlers.
xmlAllocOutputBuffer ()
Create a buffered parser output
xmlOutputBufferCreateFilename ()
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.
xmlOutputBufferCreateFile ()
Create a buffered output for the progressive saving to a FILE *
buffered C I/O
xmlOutputBufferCreateFd ()
Create a buffered output for the progressive saving
to a file descriptor
xmlOutputBufferCreateIO ()
Create a buffered output for the progressive saving
to an I/O handler
xmlOutputBufferWrite ()
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.
xmlOutputBufferWriteString ()
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.
xmlOutputBufferFlush ()
flushes the output I/O channel
xmlOutputBufferClose ()
flushes and close the output I/O channel
and free up all the associated resources
xmlRegisterOutputCallbacks ()
Register a new set of I/O callback for handling output.
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.
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.
xmlSaveFileTo ()
Dump an XML document to an I/O buffer.
xmlSaveFormatFileTo ()
Dump an XML document to an I/O buffer.
xmlNodeDumpOutput ()
Dump an XML node, recursive behaviour,children are printed too.
htmlDocContentDumpOutput ()
Dump an HTML document. Formating return/spaces are added.