SAX2.h

00001 /*
00002 
00003  * Summary: SAX2 parser interface used to build the DOM tree
00004 
00005  * Description: those are the default SAX2 interfaces used by
00006 
00007  *              the library when building DOM tree.
00008 
00009  *
00010 
00011  * Copy: See Copyright for the status of this software.
00012 
00013  *
00014 
00015  * Author: Daniel Veillard
00016 
00017  */
00018 
00019 
00020 
00021 
00022 
00023 #ifndef __XML_SAX2_H__
00024 
00025 #define __XML_SAX2_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 __cplusplus
00042 
00043 extern "C" {
00044 
00045 #endif
00046 
00047 XMLPUBFUN const xmlChar * XMLCALL
00048 
00049                 xmlSAX2GetPublicId              (void *ctx);
00050 
00051 XMLPUBFUN const xmlChar * XMLCALL       
00052 
00053                 xmlSAX2GetSystemId              (void *ctx);
00054 
00055 XMLPUBFUN void XMLCALL          
00056 
00057                 xmlSAX2SetDocumentLocator       (void *ctx,
00058 
00059                                                  xmlSAXLocatorPtr loc);
00060 
00061     
00062 
00063 XMLPUBFUN int XMLCALL           
00064 
00065                 xmlSAX2GetLineNumber            (void *ctx);
00066 
00067 XMLPUBFUN int XMLCALL           
00068 
00069                 xmlSAX2GetColumnNumber          (void *ctx);
00070 
00071 
00072 
00073 XMLPUBFUN int XMLCALL           
00074 
00075                 xmlSAX2IsStandalone             (void *ctx);
00076 
00077 XMLPUBFUN int XMLCALL           
00078 
00079                 xmlSAX2HasInternalSubset        (void *ctx);
00080 
00081 XMLPUBFUN int XMLCALL           
00082 
00083                 xmlSAX2HasExternalSubset        (void *ctx);
00084 
00085 
00086 
00087 XMLPUBFUN void XMLCALL          
00088 
00089                 xmlSAX2InternalSubset           (void *ctx,
00090 
00091                                                  const xmlChar *name,
00092 
00093                                                  const xmlChar *ExternalID,
00094 
00095                                                  const xmlChar *SystemID);
00096 
00097 XMLPUBFUN void XMLCALL          
00098 
00099                 xmlSAX2ExternalSubset           (void *ctx,
00100 
00101                                                  const xmlChar *name,
00102 
00103                                                  const xmlChar *ExternalID,
00104 
00105                                                  const xmlChar *SystemID);
00106 
00107 XMLPUBFUN xmlEntityPtr XMLCALL  
00108 
00109                 xmlSAX2GetEntity                (void *ctx,
00110 
00111                                                  const xmlChar *name);
00112 
00113 XMLPUBFUN xmlEntityPtr XMLCALL  
00114 
00115                 xmlSAX2GetParameterEntity       (void *ctx,
00116 
00117                                                  const xmlChar *name);
00118 
00119 XMLPUBFUN xmlParserInputPtr XMLCALL 
00120 
00121                 xmlSAX2ResolveEntity            (void *ctx,
00122 
00123                                                  const xmlChar *publicId,
00124 
00125                                                  const xmlChar *systemId);
00126 
00127 
00128 
00129 XMLPUBFUN void XMLCALL          
00130 
00131                 xmlSAX2EntityDecl               (void *ctx,
00132 
00133                                                  const xmlChar *name,
00134 
00135                                                  int type,
00136 
00137                                                  const xmlChar *publicId,
00138 
00139                                                  const xmlChar *systemId,
00140 
00141                                                  xmlChar *content);
00142 
00143 XMLPUBFUN void XMLCALL          
00144 
00145                 xmlSAX2AttributeDecl            (void *ctx,
00146 
00147                                                  const xmlChar *elem,
00148 
00149                                                  const xmlChar *fullname,
00150 
00151                                                  int type,
00152 
00153                                                  int def,
00154 
00155                                                  const xmlChar *defaultValue,
00156 
00157                                                  xmlEnumerationPtr tree);
00158 
00159 XMLPUBFUN void XMLCALL          
00160 
00161                 xmlSAX2ElementDecl              (void *ctx,
00162 
00163                                                  const xmlChar *name,
00164 
00165                                                  int type,
00166 
00167                                                  xmlElementContentPtr content);
00168 
00169 XMLPUBFUN void XMLCALL          
00170 
00171                 xmlSAX2NotationDecl             (void *ctx,
00172 
00173                                                  const xmlChar *name,
00174 
00175                                                  const xmlChar *publicId,
00176 
00177                                                  const xmlChar *systemId);
00178 
00179 XMLPUBFUN void XMLCALL          
00180 
00181                 xmlSAX2UnparsedEntityDecl       (void *ctx,
00182 
00183                                                  const xmlChar *name,
00184 
00185                                                  const xmlChar *publicId,
00186 
00187                                                  const xmlChar *systemId,
00188 
00189                                                  const xmlChar *notationName);
00190 
00191 
00192 
00193 XMLPUBFUN void XMLCALL          
00194 
00195                 xmlSAX2StartDocument            (void *ctx);
00196 
00197 XMLPUBFUN void XMLCALL          
00198 
00199                 xmlSAX2EndDocument              (void *ctx);
00200 
00201 #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED)
00202 
00203 XMLPUBFUN void XMLCALL          
00204 
00205                 xmlSAX2StartElement             (void *ctx,
00206 
00207                                                  const xmlChar *fullname,
00208 
00209                                                  const xmlChar **atts);
00210 
00211 XMLPUBFUN void XMLCALL          
00212 
00213                 xmlSAX2EndElement               (void *ctx,
00214 
00215                                                  const xmlChar *name);
00216 
00217 #endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED */
00218 
00219 XMLPUBFUN void XMLCALL
00220 
00221                 xmlSAX2StartElementNs           (void *ctx,
00222 
00223                                                  const xmlChar *localname,
00224 
00225                                                  const xmlChar *prefix,
00226 
00227                                                  const xmlChar *URI,
00228 
00229                                                  int nb_namespaces,
00230 
00231                                                  const xmlChar **namespaces,
00232 
00233                                                  int nb_attributes,
00234 
00235                                                  int nb_defaulted,
00236 
00237                                                  const xmlChar **attributes);
00238 
00239 XMLPUBFUN void XMLCALL
00240 
00241                 xmlSAX2EndElementNs             (void *ctx,
00242 
00243                                                  const xmlChar *localname,
00244 
00245                                                  const xmlChar *prefix,
00246 
00247                                                  const xmlChar *URI);
00248 
00249 XMLPUBFUN void XMLCALL          
00250 
00251                 xmlSAX2Reference                (void *ctx,
00252 
00253                                                  const xmlChar *name);
00254 
00255 XMLPUBFUN void XMLCALL          
00256 
00257                 xmlSAX2Characters               (void *ctx,
00258 
00259                                                  const xmlChar *ch,
00260 
00261                                                  int len);
00262 
00263 XMLPUBFUN void XMLCALL          
00264 
00265                 xmlSAX2IgnorableWhitespace      (void *ctx,
00266 
00267                                                  const xmlChar *ch,
00268 
00269                                                  int len);
00270 
00271 XMLPUBFUN void XMLCALL          
00272 
00273                 xmlSAX2ProcessingInstruction    (void *ctx,
00274 
00275                                                  const xmlChar *target,
00276 
00277                                                  const xmlChar *data);
00278 
00279 XMLPUBFUN void XMLCALL          
00280 
00281                 xmlSAX2Comment                  (void *ctx,
00282 
00283                                                  const xmlChar *value);
00284 
00285 XMLPUBFUN void XMLCALL          
00286 
00287                 xmlSAX2CDataBlock               (void *ctx,
00288 
00289                                                  const xmlChar *value,
00290 
00291                                                  int len);
00292 
00293 
00294 
00295 #ifdef LIBXML_SAX1_ENABLED
00296 
00297 XMLPUBFUN int XMLCALL
00298 
00299                 xmlSAXDefaultVersion            (int version);
00300 
00301 #endif /* LIBXML_SAX1_ENABLED */
00302 
00303 
00304 
00305 XMLPUBFUN int XMLCALL
00306 
00307                 xmlSAXVersion                   (xmlSAXHandler *hdlr,
00308 
00309                                                  int version);
00310 
00311 XMLPUBFUN void XMLCALL          
00312 
00313                 xmlSAX2InitDefaultSAXHandler    (xmlSAXHandler *hdlr,
00314 
00315                                                  int warning);
00316 
00317 #ifdef LIBXML_HTML_ENABLED
00318 
00319 XMLPUBFUN void XMLCALL          
00320 
00321                 xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
00322 
00323 XMLPUBFUN void XMLCALL          
00324 
00325                 htmlDefaultSAXHandlerInit       (void);
00326 
00327 #endif
00328 
00329 #ifdef LIBXML_DOCB_ENABLED
00330 
00331 XMLPUBFUN void XMLCALL          
00332 
00333                 xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
00334 
00335 XMLPUBFUN void XMLCALL          
00336 
00337                 docbDefaultSAXHandlerInit       (void);
00338 
00339 #endif
00340 
00341 XMLPUBFUN void XMLCALL          
00342 
00343                 xmlDefaultSAXHandlerInit        (void);
00344 
00345 #ifdef __cplusplus
00346 
00347 }
00348 
00349 #endif
00350 
00351 #endif /* __XML_SAX2_H__ */
00352 

Generated on Wed Jul 26 13:30:46 2006 for XSB by  doxygen 1.4.5