Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:14:38

0001 /**
0002  * @file
0003  * 
0004  * @brief SAX2 parser interface used to build the DOM tree
0005  * 
0006  * those are the default SAX2 interfaces used by
0007  *              the library when building DOM tree.
0008  *
0009  * @copyright See Copyright for the status of this software.
0010  *
0011  * @author Daniel Veillard
0012  */
0013 
0014 
0015 #ifndef __XML_SAX2_H__
0016 #define __XML_SAX2_H__
0017 
0018 #include <libxml/xmlversion.h>
0019 #include <libxml/parser.h>
0020 
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024 XMLPUBFUN const xmlChar *
0025         xmlSAX2GetPublicId      (void *ctx);
0026 XMLPUBFUN const xmlChar *
0027         xmlSAX2GetSystemId      (void *ctx);
0028 XMLPUBFUN void
0029         xmlSAX2SetDocumentLocator   (void *ctx,
0030                          xmlSAXLocator *loc);
0031 
0032 XMLPUBFUN int
0033         xmlSAX2GetLineNumber        (void *ctx);
0034 XMLPUBFUN int
0035         xmlSAX2GetColumnNumber      (void *ctx);
0036 
0037 XMLPUBFUN int
0038         xmlSAX2IsStandalone     (void *ctx);
0039 XMLPUBFUN int
0040         xmlSAX2HasInternalSubset    (void *ctx);
0041 XMLPUBFUN int
0042         xmlSAX2HasExternalSubset    (void *ctx);
0043 
0044 XMLPUBFUN void
0045         xmlSAX2InternalSubset       (void *ctx,
0046                          const xmlChar *name,
0047                          const xmlChar *publicId,
0048                          const xmlChar *systemId);
0049 XMLPUBFUN void
0050         xmlSAX2ExternalSubset       (void *ctx,
0051                          const xmlChar *name,
0052                          const xmlChar *publicId,
0053                          const xmlChar *systemId);
0054 XMLPUBFUN xmlEntity *
0055         xmlSAX2GetEntity        (void *ctx,
0056                          const xmlChar *name);
0057 XMLPUBFUN xmlEntity *
0058         xmlSAX2GetParameterEntity   (void *ctx,
0059                          const xmlChar *name);
0060 XMLPUBFUN xmlParserInput *
0061         xmlSAX2ResolveEntity        (void *ctx,
0062                          const xmlChar *publicId,
0063                          const xmlChar *systemId);
0064 
0065 XMLPUBFUN void
0066         xmlSAX2EntityDecl       (void *ctx,
0067                          const xmlChar *name,
0068                          int type,
0069                          const xmlChar *publicId,
0070                          const xmlChar *systemId,
0071                          xmlChar *content);
0072 XMLPUBFUN void
0073         xmlSAX2AttributeDecl        (void *ctx,
0074                          const xmlChar *elem,
0075                          const xmlChar *fullname,
0076                          int type,
0077                          int def,
0078                          const xmlChar *defaultValue,
0079                          xmlEnumeration *tree);
0080 XMLPUBFUN void
0081         xmlSAX2ElementDecl      (void *ctx,
0082                          const xmlChar *name,
0083                          int type,
0084                          xmlElementContent *content);
0085 XMLPUBFUN void
0086         xmlSAX2NotationDecl     (void *ctx,
0087                          const xmlChar *name,
0088                          const xmlChar *publicId,
0089                          const xmlChar *systemId);
0090 XMLPUBFUN void
0091         xmlSAX2UnparsedEntityDecl   (void *ctx,
0092                          const xmlChar *name,
0093                          const xmlChar *publicId,
0094                          const xmlChar *systemId,
0095                          const xmlChar *notationName);
0096 
0097 XMLPUBFUN void
0098         xmlSAX2StartDocument        (void *ctx);
0099 XMLPUBFUN void
0100         xmlSAX2EndDocument      (void *ctx);
0101 XML_DEPRECATED
0102 XMLPUBFUN void
0103         xmlSAX2StartElement     (void *ctx,
0104                          const xmlChar *fullname,
0105                          const xmlChar **atts);
0106 XML_DEPRECATED
0107 XMLPUBFUN void
0108         xmlSAX2EndElement       (void *ctx,
0109                          const xmlChar *name);
0110 XMLPUBFUN void
0111         xmlSAX2StartElementNs       (void *ctx,
0112                          const xmlChar *localname,
0113                          const xmlChar *prefix,
0114                          const xmlChar *URI,
0115                          int nb_namespaces,
0116                          const xmlChar **namespaces,
0117                          int nb_attributes,
0118                          int nb_defaulted,
0119                          const xmlChar **attributes);
0120 XMLPUBFUN void
0121         xmlSAX2EndElementNs     (void *ctx,
0122                          const xmlChar *localname,
0123                          const xmlChar *prefix,
0124                          const xmlChar *URI);
0125 XMLPUBFUN void
0126         xmlSAX2Reference        (void *ctx,
0127                          const xmlChar *name);
0128 XMLPUBFUN void
0129         xmlSAX2Characters       (void *ctx,
0130                          const xmlChar *ch,
0131                          int len);
0132 XMLPUBFUN void
0133         xmlSAX2IgnorableWhitespace  (void *ctx,
0134                          const xmlChar *ch,
0135                          int len);
0136 XMLPUBFUN void
0137         xmlSAX2ProcessingInstruction    (void *ctx,
0138                          const xmlChar *target,
0139                          const xmlChar *data);
0140 XMLPUBFUN void
0141         xmlSAX2Comment          (void *ctx,
0142                          const xmlChar *value);
0143 XMLPUBFUN void
0144         xmlSAX2CDataBlock       (void *ctx,
0145                          const xmlChar *value,
0146                          int len);
0147 
0148 #ifdef LIBXML_SAX1_ENABLED
0149 XML_DEPRECATED
0150 XMLPUBFUN int
0151         xmlSAXDefaultVersion        (int version);
0152 #endif /* LIBXML_SAX1_ENABLED */
0153 
0154 XMLPUBFUN int
0155         xmlSAXVersion           (xmlSAXHandler *hdlr,
0156                          int version);
0157 XMLPUBFUN void
0158         xmlSAX2InitDefaultSAXHandler    (xmlSAXHandler *hdlr,
0159                          int warning);
0160 #ifdef LIBXML_HTML_ENABLED
0161 XMLPUBFUN void
0162         xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
0163 XML_DEPRECATED
0164 XMLPUBFUN void
0165         htmlDefaultSAXHandlerInit   (void);
0166 #endif
0167 XML_DEPRECATED
0168 XMLPUBFUN void
0169         xmlDefaultSAXHandlerInit    (void);
0170 #ifdef __cplusplus
0171 }
0172 #endif
0173 #endif /* __XML_SAX2_H__ */