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