Home | History | Annotate | Download | only in libxml
      1 /*
      2  * Summary: Old SAX version 1 handler, deprecated
      3  * Description: DEPRECATED set of SAX version 1 interfaces used to
      4  *              build the DOM tree.
      5  *
      6  * Copy: See Copyright for the status of this software.
      7  *
      8  * Author: Daniel Veillard
      9  */
     10 
     11 
     12 #ifndef __XML_SAX_H__
     13 #define __XML_SAX_H__
     14 
     15 #include <stdio.h>
     16 #include <stdlib.h>
     17 #include <libxml/xmlversion.h>
     18 #include <libxml/parser.h>
     19 #include <libxml/xlink.h>
     20 
     21 #ifdef LIBXML_LEGACY_ENABLED
     22 
     23 #ifdef __cplusplus
     24 extern "C" {
     25 #endif
     26 XMLPUBFUN const xmlChar * XMLCALL
     27 		getPublicId			(void *ctx);
     28 XMLPUBFUN const xmlChar * XMLCALL
     29 		getSystemId			(void *ctx);
     30 XMLPUBFUN void XMLCALL
     31 		setDocumentLocator		(void *ctx,
     32 						 xmlSAXLocatorPtr loc);
     33 
     34 XMLPUBFUN int XMLCALL
     35 		getLineNumber			(void *ctx);
     36 XMLPUBFUN int XMLCALL
     37 		getColumnNumber			(void *ctx);
     38 
     39 XMLPUBFUN int XMLCALL
     40 		isStandalone			(void *ctx);
     41 XMLPUBFUN int XMLCALL
     42 		hasInternalSubset		(void *ctx);
     43 XMLPUBFUN int XMLCALL
     44 		hasExternalSubset		(void *ctx);
     45 
     46 XMLPUBFUN void XMLCALL
     47 		internalSubset			(void *ctx,
     48 						 const xmlChar *name,
     49 						 const xmlChar *ExternalID,
     50 						 const xmlChar *SystemID);
     51 XMLPUBFUN void XMLCALL
     52 		externalSubset			(void *ctx,
     53 						 const xmlChar *name,
     54 						 const xmlChar *ExternalID,
     55 						 const xmlChar *SystemID);
     56 XMLPUBFUN xmlEntityPtr XMLCALL
     57 		getEntity			(void *ctx,
     58 						 const xmlChar *name);
     59 XMLPUBFUN xmlEntityPtr XMLCALL
     60 		getParameterEntity		(void *ctx,
     61 						 const xmlChar *name);
     62 XMLPUBFUN xmlParserInputPtr XMLCALL
     63 		resolveEntity			(void *ctx,
     64 						 const xmlChar *publicId,
     65 						 const xmlChar *systemId);
     66 
     67 XMLPUBFUN void XMLCALL
     68 		entityDecl			(void *ctx,
     69 						 const xmlChar *name,
     70 						 int type,
     71 						 const xmlChar *publicId,
     72 						 const xmlChar *systemId,
     73 						 xmlChar *content);
     74 XMLPUBFUN void XMLCALL
     75 		attributeDecl			(void *ctx,
     76 						 const xmlChar *elem,
     77 						 const xmlChar *fullname,
     78 						 int type,
     79 						 int def,
     80 						 const xmlChar *defaultValue,
     81 						 xmlEnumerationPtr tree);
     82 XMLPUBFUN void XMLCALL
     83 		elementDecl			(void *ctx,
     84 						 const xmlChar *name,
     85 						 int type,
     86 						 xmlElementContentPtr content);
     87 XMLPUBFUN void XMLCALL
     88 		notationDecl			(void *ctx,
     89 						 const xmlChar *name,
     90 						 const xmlChar *publicId,
     91 						 const xmlChar *systemId);
     92 XMLPUBFUN void XMLCALL
     93 		unparsedEntityDecl		(void *ctx,
     94 						 const xmlChar *name,
     95 						 const xmlChar *publicId,
     96 						 const xmlChar *systemId,
     97 						 const xmlChar *notationName);
     98 
     99 XMLPUBFUN void XMLCALL
    100 		startDocument			(void *ctx);
    101 XMLPUBFUN void XMLCALL
    102 		endDocument			(void *ctx);
    103 XMLPUBFUN void XMLCALL
    104 		attribute			(void *ctx,
    105 						 const xmlChar *fullname,
    106 						 const xmlChar *value);
    107 XMLPUBFUN void XMLCALL
    108 		startElement			(void *ctx,
    109 						 const xmlChar *fullname,
    110 						 const xmlChar **atts);
    111 XMLPUBFUN void XMLCALL
    112 		endElement			(void *ctx,
    113 						 const xmlChar *name);
    114 XMLPUBFUN void XMLCALL
    115 		reference			(void *ctx,
    116 						 const xmlChar *name);
    117 XMLPUBFUN void XMLCALL
    118 		characters			(void *ctx,
    119 						 const xmlChar *ch,
    120 						 int len);
    121 XMLPUBFUN void XMLCALL
    122 		ignorableWhitespace		(void *ctx,
    123 						 const xmlChar *ch,
    124 						 int len);
    125 XMLPUBFUN void XMLCALL
    126 		processingInstruction		(void *ctx,
    127 						 const xmlChar *target,
    128 						 const xmlChar *data);
    129 XMLPUBFUN void XMLCALL
    130 		globalNamespace			(void *ctx,
    131 						 const xmlChar *href,
    132 						 const xmlChar *prefix);
    133 XMLPUBFUN void XMLCALL
    134 		setNamespace			(void *ctx,
    135 						 const xmlChar *name);
    136 XMLPUBFUN xmlNsPtr XMLCALL
    137 		getNamespace			(void *ctx);
    138 XMLPUBFUN int XMLCALL
    139 		checkNamespace			(void *ctx,
    140 						 xmlChar *nameSpace);
    141 XMLPUBFUN void XMLCALL
    142 		namespaceDecl			(void *ctx,
    143 						 const xmlChar *href,
    144 						 const xmlChar *prefix);
    145 XMLPUBFUN void XMLCALL
    146 		comment				(void *ctx,
    147 						 const xmlChar *value);
    148 XMLPUBFUN void XMLCALL
    149 		cdataBlock			(void *ctx,
    150 						 const xmlChar *value,
    151 						 int len);
    152 
    153 #ifdef LIBXML_SAX1_ENABLED
    154 XMLPUBFUN void XMLCALL
    155 		initxmlDefaultSAXHandler	(xmlSAXHandlerV1 *hdlr,
    156 						 int warning);
    157 #ifdef LIBXML_HTML_ENABLED
    158 XMLPUBFUN void XMLCALL
    159 		inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 *hdlr);
    160 #endif
    161 #ifdef LIBXML_DOCB_ENABLED
    162 XMLPUBFUN void XMLCALL
    163 		initdocbDefaultSAXHandler	(xmlSAXHandlerV1 *hdlr);
    164 #endif
    165 #endif /* LIBXML_SAX1_ENABLED */
    166 
    167 #ifdef __cplusplus
    168 }
    169 #endif
    170 
    171 #endif /* LIBXML_LEGACY_ENABLED */
    172 
    173 #endif /* __XML_SAX_H__ */
    174