/*
* Summary: SAX2 parser interface used to build the DOM tree
* Description: those are the default SAX2 interfaces used by
* the library when building DOM tree.
*
* Copy: See Copyright for the status of this software.
*
* Author: Daniel Veillard
*/
#ifndef __XML_SAX2_H__
#define __XML_SAX2_H__
#include <stdio.h>
#include <stdlib.h>
#include <libxml/xmlversion.h>
#ifdef __cplusplus
extern "C" {
#endif
xmlSAX2GetPublicId (void *ctx);
xmlSAX2GetSystemId (void *ctx);
xmlSAX2SetDocumentLocator (void *ctx,
xmlSAX2GetLineNumber (void *ctx);
xmlSAX2GetColumnNumber (void *ctx);
xmlSAX2IsStandalone (void *ctx);
xmlSAX2HasInternalSubset (void *ctx);
xmlSAX2HasExternalSubset (void *ctx);
xmlSAX2InternalSubset (void *ctx,
const xmlChar *ExternalID,
xmlSAX2ExternalSubset (void *ctx,
const xmlChar *ExternalID,
xmlSAX2GetEntity (void *ctx,
xmlSAX2GetParameterEntity (void *ctx,
xmlSAX2ResolveEntity (void *ctx,
xmlSAX2EntityDecl (void *ctx,
int type,
xmlSAX2AttributeDecl (void *ctx,
int type,
int def,
const xmlChar *defaultValue,
xmlSAX2ElementDecl (void *ctx,
int type,
xmlSAX2NotationDecl (void *ctx,
xmlSAX2UnparsedEntityDecl (void *ctx,
const xmlChar *notationName);
xmlSAX2StartDocument (void *ctx);
xmlSAX2EndDocument (void *ctx);
#if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED)
xmlSAX2StartElement (void *ctx,
xmlSAX2EndElement (void *ctx,
#endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED */
xmlSAX2StartElementNs (void *ctx,
int nb_namespaces,
const xmlChar **namespaces,
int nb_attributes,
int nb_defaulted,
const xmlChar **attributes);
xmlSAX2EndElementNs (void *ctx,
xmlSAX2Reference (void *ctx,
xmlSAX2Characters (void *ctx,
int len);
xmlSAX2IgnorableWhitespace (void *ctx,
int len);
xmlSAX2ProcessingInstruction (void *ctx,
xmlSAX2Comment (void *ctx,
xmlSAX2CDataBlock (void *ctx,
int len);
#ifdef LIBXML_SAX1_ENABLED
xmlSAXDefaultVersion (int version);
#endif /* LIBXML_SAX1_ENABLED */
int version);
int warning);
#ifdef LIBXML_HTML_ENABLED
htmlDefaultSAXHandlerInit (void);
#endif
#ifdef LIBXML_DOCB_ENABLED
docbDefaultSAXHandlerInit (void);
#endif
xmlDefaultSAXHandlerInit (void);
#ifdef __cplusplus
}
#endif
#endif /* __XML_SAX2_H__ */