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