00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __XML_SAX2_H__
00013 #define __XML_SAX2_H__
00014
00015 #include <stdio.h>
00016 #include <stdlib.h>
00017 #include <libxml/xmlversion.h>
00018 #include <libxml/parser.h>
00019 #include <libxml/xlink.h>
00020
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 XMLPUBFUN const xmlChar * XMLCALL
00025 xmlSAX2GetPublicId (void *ctx);
00026 XMLPUBFUN const xmlChar * XMLCALL
00027 xmlSAX2GetSystemId (void *ctx);
00028 XMLPUBFUN void XMLCALL
00029 xmlSAX2SetDocumentLocator (void *ctx,
00030 xmlSAXLocatorPtr loc);
00031
00032 XMLPUBFUN int XMLCALL
00033 xmlSAX2GetLineNumber (void *ctx);
00034 XMLPUBFUN int XMLCALL
00035 xmlSAX2GetColumnNumber (void *ctx);
00036
00037 XMLPUBFUN int XMLCALL
00038 xmlSAX2IsStandalone (void *ctx);
00039 XMLPUBFUN int XMLCALL
00040 xmlSAX2HasInternalSubset (void *ctx);
00041 XMLPUBFUN int XMLCALL
00042 xmlSAX2HasExternalSubset (void *ctx);
00043
00044 XMLPUBFUN void XMLCALL
00045 xmlSAX2InternalSubset (void *ctx,
00046 const xmlChar *name,
00047 const xmlChar *ExternalID,
00048 const xmlChar *SystemID);
00049 XMLPUBFUN void XMLCALL
00050 xmlSAX2ExternalSubset (void *ctx,
00051 const xmlChar *name,
00052 const xmlChar *ExternalID,
00053 const xmlChar *SystemID);
00054 XMLPUBFUN xmlEntityPtr XMLCALL
00055 xmlSAX2GetEntity (void *ctx,
00056 const xmlChar *name);
00057 XMLPUBFUN xmlEntityPtr XMLCALL
00058 xmlSAX2GetParameterEntity (void *ctx,
00059 const xmlChar *name);
00060 XMLPUBFUN xmlParserInputPtr XMLCALL
00061 xmlSAX2ResolveEntity (void *ctx,
00062 const xmlChar *publicId,
00063 const xmlChar *systemId);
00064
00065 XMLPUBFUN void XMLCALL
00066 xmlSAX2EntityDecl (void *ctx,
00067 const xmlChar *name,
00068 int type,
00069 const xmlChar *publicId,
00070 const xmlChar *systemId,
00071 xmlChar *content);
00072 XMLPUBFUN void XMLCALL
00073 xmlSAX2AttributeDecl (void *ctx,
00074 const xmlChar *elem,
00075 const xmlChar *fullname,
00076 int type,
00077 int def,
00078 const xmlChar *defaultValue,
00079 xmlEnumerationPtr tree);
00080 XMLPUBFUN void XMLCALL
00081 xmlSAX2ElementDecl (void *ctx,
00082 const xmlChar *name,
00083 int type,
00084 xmlElementContentPtr content);
00085 XMLPUBFUN void XMLCALL
00086 xmlSAX2NotationDecl (void *ctx,
00087 const xmlChar *name,
00088 const xmlChar *publicId,
00089 const xmlChar *systemId);
00090 XMLPUBFUN void XMLCALL
00091 xmlSAX2UnparsedEntityDecl (void *ctx,
00092 const xmlChar *name,
00093 const xmlChar *publicId,
00094 const xmlChar *systemId,
00095 const xmlChar *notationName);
00096
00097 XMLPUBFUN void XMLCALL
00098 xmlSAX2StartDocument (void *ctx);
00099 XMLPUBFUN void XMLCALL
00100 xmlSAX2EndDocument (void *ctx);
00101 #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED)
00102 XMLPUBFUN void XMLCALL
00103 xmlSAX2StartElement (void *ctx,
00104 const xmlChar *fullname,
00105 const xmlChar **atts);
00106 XMLPUBFUN void XMLCALL
00107 xmlSAX2EndElement (void *ctx,
00108 const xmlChar *name);
00109 #endif
00110 XMLPUBFUN void XMLCALL
00111 xmlSAX2StartElementNs (void *ctx,
00112 const xmlChar *localname,
00113 const xmlChar *prefix,
00114 const xmlChar *URI,
00115 int nb_namespaces,
00116 const xmlChar **namespaces,
00117 int nb_attributes,
00118 int nb_defaulted,
00119 const xmlChar **attributes);
00120 XMLPUBFUN void XMLCALL
00121 xmlSAX2EndElementNs (void *ctx,
00122 const xmlChar *localname,
00123 const xmlChar *prefix,
00124 const xmlChar *URI);
00125 XMLPUBFUN void XMLCALL
00126 xmlSAX2Reference (void *ctx,
00127 const xmlChar *name);
00128 XMLPUBFUN void XMLCALL
00129 xmlSAX2Characters (void *ctx,
00130 const xmlChar *ch,
00131 int len);
00132 XMLPUBFUN void XMLCALL
00133 xmlSAX2IgnorableWhitespace (void *ctx,
00134 const xmlChar *ch,
00135 int len);
00136 XMLPUBFUN void XMLCALL
00137 xmlSAX2ProcessingInstruction (void *ctx,
00138 const xmlChar *target,
00139 const xmlChar *data);
00140 XMLPUBFUN void XMLCALL
00141 xmlSAX2Comment (void *ctx,
00142 const xmlChar *value);
00143 XMLPUBFUN void XMLCALL
00144 xmlSAX2CDataBlock (void *ctx,
00145 const xmlChar *value,
00146 int len);
00147
00148 #ifdef LIBXML_SAX1_ENABLED
00149 XMLPUBFUN int XMLCALL
00150 xmlSAXDefaultVersion (int version);
00151 #endif
00152
00153 XMLPUBFUN int XMLCALL
00154 xmlSAXVersion (xmlSAXHandler *hdlr,
00155 int version);
00156 XMLPUBFUN void XMLCALL
00157 xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr,
00158 int warning);
00159 #ifdef LIBXML_HTML_ENABLED
00160 XMLPUBFUN void XMLCALL
00161 xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
00162 XMLPUBFUN void XMLCALL
00163 htmlDefaultSAXHandlerInit (void);
00164 #endif
00165 #ifdef LIBXML_DOCB_ENABLED
00166 XMLPUBFUN void XMLCALL
00167 xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
00168 XMLPUBFUN void XMLCALL
00169 docbDefaultSAXHandlerInit (void);
00170 #endif
00171 XMLPUBFUN void XMLCALL
00172 xmlDefaultSAXHandlerInit (void);
00173 #ifdef __cplusplus
00174 }
00175 #endif
00176 #endif