ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


xmlIO.h

Includes:

Introduction



Functions

xmlFileMatch

xmlFileMatch


XMLPUBFUN int XMLCALL xmlFileMatch (
    const char *filename);  
Discussion

Default 'file://' protocol callbacks

Typedefs


xmlInputCloseCallback


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


xmlInputMatchCallback


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


xmlInputOpenCallback


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


xmlInputReadCallback


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


xmlOutputCloseCallback


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


xmlOutputMatchCallback


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


xmlOutputOpenCallback


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


xmlOutputWriteCallback


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.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2006-06-20