Path: blob/master/venv/Lib/site-packages/lxml/includes/libxml/SAX2.h
811 views
/*1* Summary: SAX2 parser interface used to build the DOM tree2* Description: those are the default SAX2 interfaces used by3* the library when building DOM tree.4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/91011#ifndef __XML_SAX2_H__12#define __XML_SAX2_H__1314#include <stdio.h>15#include <stdlib.h>16#include <libxml/xmlversion.h>17#include <libxml/parser.h>18#include <libxml/xlink.h>1920#ifdef __cplusplus21extern "C" {22#endif23XMLPUBFUN const xmlChar * XMLCALL24xmlSAX2GetPublicId (void *ctx);25XMLPUBFUN const xmlChar * XMLCALL26xmlSAX2GetSystemId (void *ctx);27XMLPUBFUN void XMLCALL28xmlSAX2SetDocumentLocator (void *ctx,29xmlSAXLocatorPtr loc);3031XMLPUBFUN int XMLCALL32xmlSAX2GetLineNumber (void *ctx);33XMLPUBFUN int XMLCALL34xmlSAX2GetColumnNumber (void *ctx);3536XMLPUBFUN int XMLCALL37xmlSAX2IsStandalone (void *ctx);38XMLPUBFUN int XMLCALL39xmlSAX2HasInternalSubset (void *ctx);40XMLPUBFUN int XMLCALL41xmlSAX2HasExternalSubset (void *ctx);4243XMLPUBFUN void XMLCALL44xmlSAX2InternalSubset (void *ctx,45const xmlChar *name,46const xmlChar *ExternalID,47const xmlChar *SystemID);48XMLPUBFUN void XMLCALL49xmlSAX2ExternalSubset (void *ctx,50const xmlChar *name,51const xmlChar *ExternalID,52const xmlChar *SystemID);53XMLPUBFUN xmlEntityPtr XMLCALL54xmlSAX2GetEntity (void *ctx,55const xmlChar *name);56XMLPUBFUN xmlEntityPtr XMLCALL57xmlSAX2GetParameterEntity (void *ctx,58const xmlChar *name);59XMLPUBFUN xmlParserInputPtr XMLCALL60xmlSAX2ResolveEntity (void *ctx,61const xmlChar *publicId,62const xmlChar *systemId);6364XMLPUBFUN void XMLCALL65xmlSAX2EntityDecl (void *ctx,66const xmlChar *name,67int type,68const xmlChar *publicId,69const xmlChar *systemId,70xmlChar *content);71XMLPUBFUN void XMLCALL72xmlSAX2AttributeDecl (void *ctx,73const xmlChar *elem,74const xmlChar *fullname,75int type,76int def,77const xmlChar *defaultValue,78xmlEnumerationPtr tree);79XMLPUBFUN void XMLCALL80xmlSAX2ElementDecl (void *ctx,81const xmlChar *name,82int type,83xmlElementContentPtr content);84XMLPUBFUN void XMLCALL85xmlSAX2NotationDecl (void *ctx,86const xmlChar *name,87const xmlChar *publicId,88const xmlChar *systemId);89XMLPUBFUN void XMLCALL90xmlSAX2UnparsedEntityDecl (void *ctx,91const xmlChar *name,92const xmlChar *publicId,93const xmlChar *systemId,94const xmlChar *notationName);9596XMLPUBFUN void XMLCALL97xmlSAX2StartDocument (void *ctx);98XMLPUBFUN void XMLCALL99xmlSAX2EndDocument (void *ctx);100#if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || \101defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || \102defined(LIBXML_LEGACY_ENABLED)103XMLPUBFUN void XMLCALL104xmlSAX2StartElement (void *ctx,105const xmlChar *fullname,106const xmlChar **atts);107XMLPUBFUN void XMLCALL108xmlSAX2EndElement (void *ctx,109const xmlChar *name);110#endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */111XMLPUBFUN void XMLCALL112xmlSAX2StartElementNs (void *ctx,113const xmlChar *localname,114const xmlChar *prefix,115const xmlChar *URI,116int nb_namespaces,117const xmlChar **namespaces,118int nb_attributes,119int nb_defaulted,120const xmlChar **attributes);121XMLPUBFUN void XMLCALL122xmlSAX2EndElementNs (void *ctx,123const xmlChar *localname,124const xmlChar *prefix,125const xmlChar *URI);126XMLPUBFUN void XMLCALL127xmlSAX2Reference (void *ctx,128const xmlChar *name);129XMLPUBFUN void XMLCALL130xmlSAX2Characters (void *ctx,131const xmlChar *ch,132int len);133XMLPUBFUN void XMLCALL134xmlSAX2IgnorableWhitespace (void *ctx,135const xmlChar *ch,136int len);137XMLPUBFUN void XMLCALL138xmlSAX2ProcessingInstruction (void *ctx,139const xmlChar *target,140const xmlChar *data);141XMLPUBFUN void XMLCALL142xmlSAX2Comment (void *ctx,143const xmlChar *value);144XMLPUBFUN void XMLCALL145xmlSAX2CDataBlock (void *ctx,146const xmlChar *value,147int len);148149#ifdef LIBXML_SAX1_ENABLED150XMLPUBFUN int XMLCALL151xmlSAXDefaultVersion (int version);152#endif /* LIBXML_SAX1_ENABLED */153154XMLPUBFUN int XMLCALL155xmlSAXVersion (xmlSAXHandler *hdlr,156int version);157XMLPUBFUN void XMLCALL158xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr,159int warning);160#ifdef LIBXML_HTML_ENABLED161XMLPUBFUN void XMLCALL162xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);163XMLPUBFUN void XMLCALL164htmlDefaultSAXHandlerInit (void);165#endif166#ifdef LIBXML_DOCB_ENABLED167XMLPUBFUN void XMLCALL168xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);169XMLPUBFUN void XMLCALL170docbDefaultSAXHandlerInit (void);171#endif172XMLPUBFUN void XMLCALL173xmlDefaultSAXHandlerInit (void);174#ifdef __cplusplus175}176#endif177#endif /* __XML_SAX2_H__ */178179180