Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:41:50

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