Details
xmlInputMatchCallback ()
int (*xmlInputMatchCallback) (char const *filename); |
xmlInputOpenCallback ()
void* (*xmlInputOpenCallback) (char const *filename); |
xmlInputReadCallback ()
int (*xmlInputReadCallback) (void *context,
char *buffer,
int len); |
xmlInputCloseCallback ()
void (*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 */
}; |
xmlParserInputBufferPtr
typedef xmlParserInputBuffer *xmlParserInputBufferPtr; |
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
xmlParserInputBufferCreateIO ()
Create a buffered parser input for the progressive parsing for the input
from a file descriptor
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
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); |
xmlRegisterInputCallbacks ()
Register a new set of I/O callback for handling parser input.