1999-12-03 13:19:09 +00:00
/*
1999-12-18 15:32:46 +00:00
* SAX . h : Default SAX handler interfaces .
1999-12-03 13:19:09 +00:00
*
* See Copyright for the status of this software .
*
* Daniel Veillard < Daniel . Veillard @ w3 . org >
*/
1999-12-18 15:32:46 +00:00
# ifndef __XML_SAX_H__
# define __XML_SAX_H__
1999-12-03 13:19:09 +00:00
# include <stdio.h>
# include <stdlib.h>
2000-04-03 19:48:13 +00:00
# include <libxml/parser.h>
# include <libxml/xlink.h>
1999-12-03 13:19:09 +00:00
1999-12-18 15:32:46 +00:00
# ifdef __cplusplus
2000-07-14 14:49:25 +00:00
extern " C " {
1999-12-18 15:32:46 +00:00
# endif
1999-12-03 13:19:09 +00:00
const xmlChar * getPublicId ( void * ctx ) ;
const xmlChar * getSystemId ( void * ctx ) ;
void setDocumentLocator ( void * ctx ,
xmlSAXLocatorPtr loc ) ;
int getLineNumber ( void * ctx ) ;
int getColumnNumber ( void * ctx ) ;
int isStandalone ( void * ctx ) ;
int hasInternalSubset ( void * ctx ) ;
int hasExternalSubset ( void * ctx ) ;
void internalSubset ( void * ctx ,
const xmlChar * name ,
const xmlChar * ExternalID ,
const xmlChar * SystemID ) ;
xmlEntityPtr getEntity ( void * ctx ,
const xmlChar * name ) ;
xmlEntityPtr getParameterEntity ( void * ctx ,
const xmlChar * name ) ;
xmlParserInputPtr resolveEntity ( void * ctx ,
const xmlChar * publicId ,
const xmlChar * systemId ) ;
void entityDecl ( void * ctx ,
const xmlChar * name ,
int type ,
const xmlChar * publicId ,
const xmlChar * systemId ,
xmlChar * content ) ;
void attributeDecl ( void * ctx ,
const xmlChar * elem ,
const xmlChar * name ,
int type ,
int def ,
const xmlChar * defaultValue ,
xmlEnumerationPtr tree ) ;
void elementDecl ( void * ctx ,
const xmlChar * name ,
int type ,
xmlElementContentPtr content ) ;
void notationDecl ( void * ctx ,
const xmlChar * name ,
const xmlChar * publicId ,
const xmlChar * systemId ) ;
void unparsedEntityDecl ( void * ctx ,
const xmlChar * name ,
const xmlChar * publicId ,
const xmlChar * systemId ,
const xmlChar * notationName ) ;
void startDocument ( void * ctx ) ;
void endDocument ( void * ctx ) ;
void attribute ( void * ctx ,
const xmlChar * fullname ,
const xmlChar * value ) ;
void startElement ( void * ctx ,
const xmlChar * fullname ,
const xmlChar * * atts ) ;
void endElement ( void * ctx ,
const xmlChar * name ) ;
void reference ( void * ctx ,
const xmlChar * name ) ;
void characters ( void * ctx ,
const xmlChar * ch ,
int len ) ;
void ignorableWhitespace ( void * ctx ,
const xmlChar * ch ,
int len ) ;
void processingInstruction ( void * ctx ,
const xmlChar * target ,
const xmlChar * data ) ;
void globalNamespace ( void * ctx ,
const xmlChar * href ,
const xmlChar * prefix ) ;
void setNamespace ( void * ctx ,
const xmlChar * name ) ;
xmlNsPtr getNamespace ( void * ctx ) ;
int checkNamespace ( void * ctx ,
1999-12-15 04:32:07 +00:00
xmlChar * nameSpace ) ;
1999-12-03 13:19:09 +00:00
void namespaceDecl ( void * ctx ,
const xmlChar * href ,
const xmlChar * prefix ) ;
void comment ( void * ctx ,
const xmlChar * value ) ;
void cdataBlock ( void * ctx ,
const xmlChar * value ,
int len ) ;
void xmlDefaultSAXHandlerInit ( void ) ;
void htmlDefaultSAXHandlerInit ( void ) ;
2000-09-10 16:14:55 +00:00
void sgmlDefaultSAXHandlerInit ( void ) ;
1999-12-18 15:32:46 +00:00
# ifdef __cplusplus
}
# endif
1999-12-03 13:19:09 +00:00
# endif /* __XML_SAX_H__ */