epoc32/include/stdapis/libxml2/libxml2_sax2.h
branchSymbian3
changeset 4 837f303aceeb
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
       
     1 /*
       
     2  * Summary: SAX2 parser interface used to build the DOM tree
       
     3  * Description: those are the default SAX2 interfaces used by
       
     4  *              the library when building DOM tree.
       
     5  *
       
     6  * Copy: See Copyright for the status of this software.
       
     7  *
       
     8  * Author: Daniel Veillard
       
     9  * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
       
    10  */
       
    11 
       
    12 /** @file
       
    13 @publishedAll
       
    14 @released
       
    15 */
       
    16 
       
    17 #ifndef XML_SAX2_H
       
    18 #define XML_SAX2_H
       
    19 
       
    20 #include <libxml2_parser.h>
       
    21 
       
    22 #ifdef LIBXML_XPTR_ENABLED
       
    23 #include <libxml2_xlink.h>
       
    24 #endif
       
    25 
       
    26 #ifdef __cplusplus
       
    27 extern "C" {
       
    28 #endif
       
    29 XMLPUBFUN const xmlChar * XMLCALL
       
    30                 xmlSAX2GetPublicId              (void *ctx);
       
    31 XMLPUBFUN const xmlChar * XMLCALL
       
    32                 xmlSAX2GetSystemId              (void *ctx);
       
    33 XMLPUBFUN void XMLCALL
       
    34                 xmlSAX2SetDocumentLocator       (void *ctx,
       
    35                                                  xmlSAXLocatorPtr loc);
       
    36 
       
    37 XMLPUBFUN int XMLCALL
       
    38                 xmlSAX2GetLineNumber            (void *ctx);
       
    39 XMLPUBFUN int XMLCALL
       
    40                 xmlSAX2GetColumnNumber          (void *ctx);
       
    41 
       
    42 XMLPUBFUN int XMLCALL
       
    43                 xmlSAX2IsStandalone             (void *ctx);
       
    44 XMLPUBFUN int XMLCALL
       
    45                 xmlSAX2HasInternalSubset        (void *ctx);
       
    46 XMLPUBFUN int XMLCALL
       
    47                 xmlSAX2HasExternalSubset        (void *ctx);
       
    48 
       
    49 XMLPUBFUN void XMLCALL
       
    50                 xmlSAX2InternalSubset           (void *ctx,
       
    51                                                  const xmlChar *name,
       
    52                                                  const xmlChar *ExternalID,
       
    53                                                  const xmlChar *SystemID);
       
    54 XMLPUBFUN void XMLCALL
       
    55                 xmlSAX2ExternalSubset           (void *ctx,
       
    56                                                  const xmlChar *name,
       
    57                                                  const xmlChar *ExternalID,
       
    58                                                  const xmlChar *SystemID);
       
    59 XMLPUBFUN xmlEntityPtr XMLCALL
       
    60                 xmlSAX2GetEntity                (void *ctx,
       
    61                                                  const xmlChar *name);
       
    62 XMLPUBFUN xmlEntityPtr XMLCALL
       
    63                 xmlSAX2GetParameterEntity       (void *ctx,
       
    64                                                  const xmlChar *name);
       
    65 XMLPUBFUN xmlParserInputPtr XMLCALL
       
    66                 xmlSAX2ResolveEntity            (void *ctx,
       
    67                                                  const xmlChar *publicId,
       
    68                                                  const xmlChar *systemId);
       
    69 
       
    70 XMLPUBFUN void XMLCALL
       
    71                 xmlSAX2EntityDecl               (void *ctx,
       
    72                                                  const xmlChar *name,
       
    73                                                  int type,
       
    74                                                  const xmlChar *publicId,
       
    75                                                  const xmlChar *systemId,
       
    76                                                  xmlChar *content);
       
    77 XMLPUBFUN void XMLCALL
       
    78                 xmlSAX2AttributeDecl            (void *ctx,
       
    79                                                  const xmlChar *elem,
       
    80                                                  const xmlChar *fullname,
       
    81                                                  int type,
       
    82                                                  int def,
       
    83                                                  const xmlChar *defaultValue,
       
    84                                                  xmlEnumerationPtr tree);
       
    85 XMLPUBFUN void XMLCALL
       
    86                 xmlSAX2ElementDecl              (void *ctx,
       
    87                                                  const xmlChar *name,
       
    88                                                  int type,
       
    89                                                  xmlElementContentPtr content);
       
    90 XMLPUBFUN void XMLCALL
       
    91                 xmlSAX2NotationDecl             (void *ctx,
       
    92                                                  const xmlChar *name,
       
    93                                                  const xmlChar *publicId,
       
    94                                                  const xmlChar *systemId);
       
    95 XMLPUBFUN void XMLCALL
       
    96                 xmlSAX2UnparsedEntityDecl       (void *ctx,
       
    97                                                  const xmlChar *name,
       
    98                                                  const xmlChar *publicId,
       
    99                                                  const xmlChar *systemId,
       
   100                                                  const xmlChar *notationName);
       
   101 
       
   102 XMLPUBFUN void XMLCALL
       
   103                 xmlSAX2StartDocument            (void *ctx);
       
   104 XMLPUBFUN void XMLCALL
       
   105                 xmlSAX2EndDocument              (void *ctx);
       
   106 XMLPUBFUN void XMLCALL
       
   107                 xmlSAX2StartElement             (void *ctx,
       
   108                                                  const xmlChar *fullname,
       
   109                                                  const xmlChar **atts);
       
   110 XMLPUBFUN void XMLCALL
       
   111                 xmlSAX2EndElement               (void *ctx,
       
   112                                                  const xmlChar *name);
       
   113 XMLPUBFUN void XMLCALL
       
   114                 xmlSAX2StartElementNs           (void *ctx,
       
   115                                                  const xmlChar *localname,
       
   116                                                  const xmlChar *prefix,
       
   117                                                  const xmlChar *URI,
       
   118                                                  int nb_namespaces,
       
   119                                                  const xmlChar **namespaces,
       
   120                                                  int nb_attributes,
       
   121                                                  int nb_defaulted,
       
   122                                                  const xmlChar **attributes);
       
   123 XMLPUBFUN void XMLCALL
       
   124                 xmlSAX2EndElementNs             (void *ctx,
       
   125                                                  const xmlChar *localname,
       
   126                                                  const xmlChar *prefix,
       
   127                                                  const xmlChar *URI);
       
   128 XMLPUBFUN void XMLCALL
       
   129                 xmlSAX2Reference                (void *ctx,
       
   130                                                  const xmlChar *name);
       
   131 XMLPUBFUN void XMLCALL
       
   132                 xmlSAX2Characters               (void *ctx,
       
   133                                                  const xmlChar *ch,
       
   134                                                  int len);
       
   135 XMLPUBFUN void XMLCALL
       
   136                 xmlSAX2IgnorableWhitespace      (void *ctx,
       
   137                                                  const xmlChar *ch,
       
   138                                                  int len);
       
   139 XMLPUBFUN void XMLCALL
       
   140                 xmlSAX2ProcessingInstruction    (void *ctx,
       
   141                                                  const xmlChar *target,
       
   142                                                  const xmlChar *data);
       
   143 XMLPUBFUN void XMLCALL
       
   144                 xmlSAX2Comment                  (void *ctx,
       
   145                                                  const xmlChar *value);
       
   146 XMLPUBFUN void XMLCALL
       
   147                 xmlSAX2CDataBlock               (void *ctx,
       
   148                                                  const xmlChar *value,
       
   149                                                  int len);
       
   150 
       
   151 XMLPUBFUN int XMLCALL
       
   152                 xmlSAXDefaultVersion            (int version);
       
   153 
       
   154 XMLPUBFUN int XMLCALL
       
   155                 xmlSAXVersion                   (xmlSAXHandler *hdlr,
       
   156                                                  int version);
       
   157 XMLPUBFUN void XMLCALL
       
   158                 xmlSAX2InitDefaultSAXHandler    (xmlSAXHandler *hdlr,
       
   159                                                  int warning);
       
   160 #ifdef LIBXML_HTML_ENABLED
       
   161 XMLPUBFUN void XMLCALL
       
   162                 xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
       
   163 #endif
       
   164 #ifdef LIBXML_DOCB_ENABLED
       
   165 XMLPUBFUN void XMLCALL
       
   166                 xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
       
   167 #endif
       
   168 XMLPUBFUN void XMLCALL
       
   169                 xmlDefaultSAXHandlerInit        (void);
       
   170 XMLPUBFUN void XMLCALL
       
   171                 htmlDefaultSAXHandlerInit       (void);
       
   172 XMLPUBFUN void XMLCALL
       
   173                 docbDefaultSAXHandlerInit       (void);
       
   174 #ifdef __cplusplus
       
   175 }
       
   176 #endif
       
   177 #endif /* XML_SAX2_H */
       
   178