Introduction
Functions
- xmlFileMatch
XMLPUBFUN int XMLCALL xmlFileMatch (
const char *filename);
Discussion
Default 'file://' protocol callbacks
Typedefs
typedef int (*xmlInputCloseCallback) (
void *context);
Discussion
xmlInputCloseCallback:
@context: an Input context
Callback used in the I/O Input API to close the resource
Returns 0 or -1 in case of error
typedef int (*xmlInputMatchCallback) (
char const *filename);
Discussion
xmlInputMatchCallback:
@filename: the filename or URI
Callback used in the I/O Input API to detect if the current handler
can provide input fonctionnalities for this resource.
Returns 1 if yes and 0 if another Input module should be used
typedef void * (*xmlInputOpenCallback) (
char const *filename);
Discussion
xmlInputOpenCallback:
@filename: the filename or URI
Callback used in the I/O Input API to open the resource
Returns an Input context or NULL in case or error
typedef int (*xmlInputReadCallback) (
void *context,
char *buffer,
int len);
Discussion
xmlInputReadCallback:
@context: an Input context
@buffer: the buffer to store data read
@len: the length of the buffer in bytes
Callback used in the I/O Input API to read the resource
Returns the number of bytes read or -1 in case of error
typedef int (*xmlOutputCloseCallback) (
void *context);
Discussion
xmlOutputCloseCallback:
@context: an Output context
Callback used in the I/O Output API to close the resource
Returns 0 or -1 in case of error
typedef int (*xmlOutputMatchCallback) (
char const *filename);
Discussion
xmlOutputMatchCallback:
@filename: the filename or URI
Callback used in the I/O Output API to detect if the current handler
can provide output fonctionnalities for this resource.
Returns 1 if yes and 0 if another Output module should be used
typedef void * (*xmlOutputOpenCallback) (
char const *filename);
Discussion
xmlOutputOpenCallback:
@filename: the filename or URI
Callback used in the I/O Output API to open the resource
Returns an Output context or NULL in case or error
typedef int (*xmlOutputWriteCallback) (
void *context,
const char *buffer,
int len);
Discussion
xmlOutputWriteCallback:
@context: an Output context
@buffer: the buffer of data to write
@len: the length of the buffer in bytes
Callback used in the I/O Output API to write to the resource
Returns the number of bytes written or -1 in case of error
|
Did this document help you? |
Yes: Tell us what works for you.
|
|
Last Updated: 2006-06-20