00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __XML_SAX_H__
00024
00025 #define __XML_SAX_H__
00026
00027
00028
00029 #include <stdio.h>
00030
00031 #include <stdlib.h>
00032
00033 #include <libxml/xmlversion.h>
00034
00035 #include <libxml/parser.h>
00036
00037 #include <libxml/xlink.h>
00038
00039
00040
00041 #ifdef LIBXML_LEGACY_ENABLED
00042
00043
00044
00045 #ifdef __cplusplus
00046
00047 extern "C" {
00048
00049 #endif
00050
00051 XMLPUBFUN const xmlChar * XMLCALL
00052
00053 getPublicId (void *ctx);
00054
00055 XMLPUBFUN const xmlChar * XMLCALL
00056
00057 getSystemId (void *ctx);
00058
00059 XMLPUBFUN void XMLCALL
00060
00061 setDocumentLocator (void *ctx,
00062
00063 xmlSAXLocatorPtr loc);
00064
00065
00066
00067 XMLPUBFUN int XMLCALL
00068
00069 getLineNumber (void *ctx);
00070
00071 XMLPUBFUN int XMLCALL
00072
00073 getColumnNumber (void *ctx);
00074
00075
00076
00077 XMLPUBFUN int XMLCALL
00078
00079 isStandalone (void *ctx);
00080
00081 XMLPUBFUN int XMLCALL
00082
00083 hasInternalSubset (void *ctx);
00084
00085 XMLPUBFUN int XMLCALL
00086
00087 hasExternalSubset (void *ctx);
00088
00089
00090
00091 XMLPUBFUN void XMLCALL
00092
00093 internalSubset (void *ctx,
00094
00095 const xmlChar *name,
00096
00097 const xmlChar *ExternalID,
00098
00099 const xmlChar *SystemID);
00100
00101 XMLPUBFUN void XMLCALL
00102
00103 externalSubset (void *ctx,
00104
00105 const xmlChar *name,
00106
00107 const xmlChar *ExternalID,
00108
00109 const xmlChar *SystemID);
00110
00111 XMLPUBFUN xmlEntityPtr XMLCALL
00112
00113 getEntity (void *ctx,
00114
00115 const xmlChar *name);
00116
00117 XMLPUBFUN xmlEntityPtr XMLCALL
00118
00119 getParameterEntity (void *ctx,
00120
00121 const xmlChar *name);
00122
00123 XMLPUBFUN xmlParserInputPtr XMLCALL
00124
00125 resolveEntity (void *ctx,
00126
00127 const xmlChar *publicId,
00128
00129 const xmlChar *systemId);
00130
00131
00132
00133 XMLPUBFUN void XMLCALL
00134
00135 entityDecl (void *ctx,
00136
00137 const xmlChar *name,
00138
00139 int type,
00140
00141 const xmlChar *publicId,
00142
00143 const xmlChar *systemId,
00144
00145 xmlChar *content);
00146
00147 XMLPUBFUN void XMLCALL
00148
00149 attributeDecl (void *ctx,
00150
00151 const xmlChar *elem,
00152
00153 const xmlChar *fullname,
00154
00155 int type,
00156
00157 int def,
00158
00159 const xmlChar *defaultValue,
00160
00161 xmlEnumerationPtr tree);
00162
00163 XMLPUBFUN void XMLCALL
00164
00165 elementDecl (void *ctx,
00166
00167 const xmlChar *name,
00168
00169 int type,
00170
00171 xmlElementContentPtr content);
00172
00173 XMLPUBFUN void XMLCALL
00174
00175 notationDecl (void *ctx,
00176
00177 const xmlChar *name,
00178
00179 const xmlChar *publicId,
00180
00181 const xmlChar *systemId);
00182
00183 XMLPUBFUN void XMLCALL
00184
00185 unparsedEntityDecl (void *ctx,
00186
00187 const xmlChar *name,
00188
00189 const xmlChar *publicId,
00190
00191 const xmlChar *systemId,
00192
00193 const xmlChar *notationName);
00194
00195
00196
00197 XMLPUBFUN void XMLCALL
00198
00199 startDocument (void *ctx);
00200
00201 XMLPUBFUN void XMLCALL
00202
00203 endDocument (void *ctx);
00204
00205 XMLPUBFUN void XMLCALL
00206
00207 attribute (void *ctx,
00208
00209 const xmlChar *fullname,
00210
00211 const xmlChar *value);
00212
00213 XMLPUBFUN void XMLCALL
00214
00215 startElement (void *ctx,
00216
00217 const xmlChar *fullname,
00218
00219 const xmlChar **atts);
00220
00221 XMLPUBFUN void XMLCALL
00222
00223 endElement (void *ctx,
00224
00225 const xmlChar *name);
00226
00227 XMLPUBFUN void XMLCALL
00228
00229 reference (void *ctx,
00230
00231 const xmlChar *name);
00232
00233 XMLPUBFUN void XMLCALL
00234
00235 characters (void *ctx,
00236
00237 const xmlChar *ch,
00238
00239 int len);
00240
00241 XMLPUBFUN void XMLCALL
00242
00243 ignorableWhitespace (void *ctx,
00244
00245 const xmlChar *ch,
00246
00247 int len);
00248
00249 XMLPUBFUN void XMLCALL
00250
00251 processingInstruction (void *ctx,
00252
00253 const xmlChar *target,
00254
00255 const xmlChar *data);
00256
00257 XMLPUBFUN void XMLCALL
00258
00259 globalNamespace (void *ctx,
00260
00261 const xmlChar *href,
00262
00263 const xmlChar *prefix);
00264
00265 XMLPUBFUN void XMLCALL
00266
00267 setNamespace (void *ctx,
00268
00269 const xmlChar *name);
00270
00271 XMLPUBFUN xmlNsPtr XMLCALL
00272
00273 getNamespace (void *ctx);
00274
00275 XMLPUBFUN int XMLCALL
00276
00277 checkNamespace (void *ctx,
00278
00279 xmlChar *nameSpace);
00280
00281 XMLPUBFUN void XMLCALL
00282
00283 namespaceDecl (void *ctx,
00284
00285 const xmlChar *href,
00286
00287 const xmlChar *prefix);
00288
00289 XMLPUBFUN void XMLCALL
00290
00291 comment (void *ctx,
00292
00293 const xmlChar *value);
00294
00295 XMLPUBFUN void XMLCALL
00296
00297 cdataBlock (void *ctx,
00298
00299 const xmlChar *value,
00300
00301 int len);
00302
00303
00304
00305 #ifdef LIBXML_SAX1_ENABLED
00306
00307 XMLPUBFUN void XMLCALL
00308
00309 initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
00310
00311 int warning);
00312
00313 #ifdef LIBXML_HTML_ENABLED
00314
00315 XMLPUBFUN void XMLCALL
00316
00317 inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
00318
00319 #endif
00320
00321 #ifdef LIBXML_DOCB_ENABLED
00322
00323 XMLPUBFUN void XMLCALL
00324
00325 initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
00326
00327 #endif
00328
00329 #endif
00330
00331
00332
00333 #ifdef __cplusplus
00334
00335 }
00336
00337 #endif
00338
00339
00340
00341 #endif
00342
00343
00344
00345 #endif
00346