xmlIO.h File Reference

#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/globals.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/encoding.h>

Data Structures

struct  _xmlParserInputBuffer

Typedefs

typedef int(* xmlInputMatchCallback )(char const *filename)
typedef void *(* xmlInputOpenCallback )(char const *filename)
typedef int(* xmlInputReadCallback )(void *context, char *buffer, int len)
typedef int(* xmlInputCloseCallback )(void *context)

Functions

XMLPUBFUN void XMLCALL xmlCleanupInputCallbacks (void)
XMLPUBFUN int XMLCALL xmlPopInputCallbacks (void)
XMLPUBFUN void XMLCALL xmlRegisterDefaultInputCallbacks (void)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlAllocParserInputBuffer (xmlCharEncoding enc)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlParserInputBufferCreateFilename (const char *URI, xmlCharEncoding enc)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlParserInputBufferCreateFile (FILE *file, xmlCharEncoding enc)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlParserInputBufferCreateFd (int fd, xmlCharEncoding enc)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlParserInputBufferCreateMem (const char *mem, int size, xmlCharEncoding enc)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlParserInputBufferCreateStatic (const char *mem, int size, xmlCharEncoding enc)
XMLPUBFUN xmlParserInputBufferPtr
XMLCALL 
xmlParserInputBufferCreateIO (xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, xmlCharEncoding enc)
XMLPUBFUN int XMLCALL xmlParserInputBufferRead (xmlParserInputBufferPtr in, int len)
XMLPUBFUN int XMLCALL xmlParserInputBufferGrow (xmlParserInputBufferPtr in, int len)
XMLPUBFUN int XMLCALL xmlParserInputBufferPush (xmlParserInputBufferPtr in, int len, const char *buf)
XMLPUBFUN void XMLCALL xmlFreeParserInputBuffer (xmlParserInputBufferPtr in)
XMLPUBFUN char *XMLCALL xmlParserGetDirectory (const char *filename)
XMLPUBFUN int XMLCALL xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc, xmlInputOpenCallback openFunc, xmlInputReadCallback readFunc, xmlInputCloseCallback closeFunc)
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename (const char *URI, xmlCharEncoding enc)
XMLPUBFUN xmlParserInputPtr
XMLCALL 
xmlCheckHTTPInput (xmlParserCtxtPtr ctxt, xmlParserInputPtr ret)
XMLPUBFUN xmlParserInputPtr
XMLCALL 
xmlNoNetExternalEntityLoader (const char *URL, const char *ID, xmlParserCtxtPtr ctxt)
XMLPUBFUN xmlChar *XMLCALL xmlNormalizeWindowsPath (const xmlChar *path)
XMLPUBFUN int XMLCALL xmlCheckFilename (const char *path)
XMLPUBFUN int XMLCALL xmlFileMatch (const char *filename)
XMLPUBFUN void *XMLCALL xmlFileOpen (const char *filename)
XMLPUBFUN int XMLCALL xmlFileRead (void *context, char *buffer, int len)
XMLPUBFUN int XMLCALL xmlFileClose (void *context)

Typedef Documentation

typedef int(* xmlInputCloseCallback)(void *context)
 

xmlInputCloseCallback: : 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)
 

xmlInputMatchCallback: : 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)
 

xmlInputOpenCallback: : 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)
 

xmlInputReadCallback: : an Input context : the buffer to store data read : 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


Function Documentation

xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename const char *  URI,
xmlCharEncoding  enc
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlAllocParserInputBuffer xmlCharEncoding  enc  ) 
 

XMLPUBFUN int XMLCALL xmlCheckFilename const char *  path  ) 
 

XMLPUBFUN xmlParserInputPtr XMLCALL xmlCheckHTTPInput xmlParserCtxtPtr  ctxt,
xmlParserInputPtr  ret
 

XMLPUBFUN void XMLCALL xmlCleanupInputCallbacks void   ) 
 

XMLPUBFUN int XMLCALL xmlFileClose void *  context  ) 
 

XMLPUBFUN int XMLCALL xmlFileMatch const char *  filename  ) 
 

Default 'file://' protocol callbacks

XMLPUBFUN void* XMLCALL xmlFileOpen const char *  filename  ) 
 

XMLPUBFUN int XMLCALL xmlFileRead void *  context,
char *  buffer,
int  len
 

XMLPUBFUN void XMLCALL xmlFreeParserInputBuffer xmlParserInputBufferPtr  in  ) 
 

XMLPUBFUN xmlParserInputPtr XMLCALL xmlNoNetExternalEntityLoader const char *  URL,
const char *  ID,
xmlParserCtxtPtr  ctxt
 

XMLPUBFUN xmlChar* XMLCALL xmlNormalizeWindowsPath const xmlChar path  ) 
 

XMLPUBFUN char* XMLCALL xmlParserGetDirectory const char *  filename  ) 
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateFd int  fd,
xmlCharEncoding  enc
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateFile FILE *  file,
xmlCharEncoding  enc
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateFilename const char *  URI,
xmlCharEncoding  enc
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateIO xmlInputReadCallback  ioread,
xmlInputCloseCallback  ioclose,
void *  ioctx,
xmlCharEncoding  enc
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateMem const char *  mem,
int  size,
xmlCharEncoding  enc
 

XMLPUBFUN xmlParserInputBufferPtr XMLCALL xmlParserInputBufferCreateStatic const char *  mem,
int  size,
xmlCharEncoding  enc
 

XMLPUBFUN int XMLCALL xmlParserInputBufferGrow xmlParserInputBufferPtr  in,
int  len
 

XMLPUBFUN int XMLCALL xmlParserInputBufferPush xmlParserInputBufferPtr  in,
int  len,
const char *  buf
 

XMLPUBFUN int XMLCALL xmlParserInputBufferRead xmlParserInputBufferPtr  in,
int  len
 

XMLPUBFUN int XMLCALL xmlPopInputCallbacks void   ) 
 

XMLPUBFUN void XMLCALL xmlRegisterDefaultInputCallbacks void   ) 
 

XMLPUBFUN int XMLCALL xmlRegisterInputCallbacks xmlInputMatchCallback  matchFunc,
xmlInputOpenCallback  openFunc,
xmlInputReadCallback  readFunc,
xmlInputCloseCallback  closeFunc
 


Generated on Wed Jul 26 13:26:57 2006 for XSB by  doxygen 1.4.5