Path: blob/master/venv/Lib/site-packages/lxml/includes/libxml/SAX.h
811 views
/*1* Summary: Old SAX version 1 handler, deprecated2* Description: DEPRECATED set of SAX version 1 interfaces used to3* build the DOM tree.4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/91011#ifndef __XML_SAX_H__12#define __XML_SAX_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 LIBXML_LEGACY_ENABLED2122#ifdef __cplusplus23extern "C" {24#endif25XMLPUBFUN const xmlChar * XMLCALL26getPublicId (void *ctx);27XMLPUBFUN const xmlChar * XMLCALL28getSystemId (void *ctx);29XMLPUBFUN void XMLCALL30setDocumentLocator (void *ctx,31xmlSAXLocatorPtr loc);3233XMLPUBFUN int XMLCALL34getLineNumber (void *ctx);35XMLPUBFUN int XMLCALL36getColumnNumber (void *ctx);3738XMLPUBFUN int XMLCALL39isStandalone (void *ctx);40XMLPUBFUN int XMLCALL41hasInternalSubset (void *ctx);42XMLPUBFUN int XMLCALL43hasExternalSubset (void *ctx);4445XMLPUBFUN void XMLCALL46internalSubset (void *ctx,47const xmlChar *name,48const xmlChar *ExternalID,49const xmlChar *SystemID);50XMLPUBFUN void XMLCALL51externalSubset (void *ctx,52const xmlChar *name,53const xmlChar *ExternalID,54const xmlChar *SystemID);55XMLPUBFUN xmlEntityPtr XMLCALL56getEntity (void *ctx,57const xmlChar *name);58XMLPUBFUN xmlEntityPtr XMLCALL59getParameterEntity (void *ctx,60const xmlChar *name);61XMLPUBFUN xmlParserInputPtr XMLCALL62resolveEntity (void *ctx,63const xmlChar *publicId,64const xmlChar *systemId);6566XMLPUBFUN void XMLCALL67entityDecl (void *ctx,68const xmlChar *name,69int type,70const xmlChar *publicId,71const xmlChar *systemId,72xmlChar *content);73XMLPUBFUN void XMLCALL74attributeDecl (void *ctx,75const xmlChar *elem,76const xmlChar *fullname,77int type,78int def,79const xmlChar *defaultValue,80xmlEnumerationPtr tree);81XMLPUBFUN void XMLCALL82elementDecl (void *ctx,83const xmlChar *name,84int type,85xmlElementContentPtr content);86XMLPUBFUN void XMLCALL87notationDecl (void *ctx,88const xmlChar *name,89const xmlChar *publicId,90const xmlChar *systemId);91XMLPUBFUN void XMLCALL92unparsedEntityDecl (void *ctx,93const xmlChar *name,94const xmlChar *publicId,95const xmlChar *systemId,96const xmlChar *notationName);9798XMLPUBFUN void XMLCALL99startDocument (void *ctx);100XMLPUBFUN void XMLCALL101endDocument (void *ctx);102XMLPUBFUN void XMLCALL103attribute (void *ctx,104const xmlChar *fullname,105const xmlChar *value);106XMLPUBFUN void XMLCALL107startElement (void *ctx,108const xmlChar *fullname,109const xmlChar **atts);110XMLPUBFUN void XMLCALL111endElement (void *ctx,112const xmlChar *name);113XMLPUBFUN void XMLCALL114reference (void *ctx,115const xmlChar *name);116XMLPUBFUN void XMLCALL117characters (void *ctx,118const xmlChar *ch,119int len);120XMLPUBFUN void XMLCALL121ignorableWhitespace (void *ctx,122const xmlChar *ch,123int len);124XMLPUBFUN void XMLCALL125processingInstruction (void *ctx,126const xmlChar *target,127const xmlChar *data);128XMLPUBFUN void XMLCALL129globalNamespace (void *ctx,130const xmlChar *href,131const xmlChar *prefix);132XMLPUBFUN void XMLCALL133setNamespace (void *ctx,134const xmlChar *name);135XMLPUBFUN xmlNsPtr XMLCALL136getNamespace (void *ctx);137XMLPUBFUN int XMLCALL138checkNamespace (void *ctx,139xmlChar *nameSpace);140XMLPUBFUN void XMLCALL141namespaceDecl (void *ctx,142const xmlChar *href,143const xmlChar *prefix);144XMLPUBFUN void XMLCALL145comment (void *ctx,146const xmlChar *value);147XMLPUBFUN void XMLCALL148cdataBlock (void *ctx,149const xmlChar *value,150int len);151152#ifdef LIBXML_SAX1_ENABLED153XMLPUBFUN void XMLCALL154initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,155int warning);156#ifdef LIBXML_HTML_ENABLED157XMLPUBFUN void XMLCALL158inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);159#endif160#ifdef LIBXML_DOCB_ENABLED161XMLPUBFUN void XMLCALL162initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);163#endif164#endif /* LIBXML_SAX1_ENABLED */165166#ifdef __cplusplus167}168#endif169170#endif /* LIBXML_LEGACY_ENABLED */171172#endif /* __XML_SAX_H__ */173174175