1 /* 2 * Summary: Old SAX version 1 handler, deprecated 3 * Description: DEPRECATED set of SAX version 1 interfaces used to 4 * build the DOM tree. 5 * 6 * Copy: See Copyright for the status of this software. 7 * 8 * Author: Daniel Veillard 9 */ 10 11 12 #ifndef __XML_SAX_H__ 13 #define __XML_SAX_H__ 14 15 #include <stdio.h> 16 #include <stdlib.h> 17 #include <libxml/xmlversion.h> 18 #include <libxml/parser.h> 19 #include <libxml/xlink.h> 20 21 #ifdef LIBXML_LEGACY_ENABLED 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 XML_DEPRECATED 27 XMLPUBFUN const xmlChar * XMLCALL 28 getPublicId (void *ctx); 29 XML_DEPRECATED 30 XMLPUBFUN const xmlChar * XMLCALL 31 getSystemId (void *ctx); 32 XML_DEPRECATED 33 XMLPUBFUN void XMLCALL 34 setDocumentLocator (void *ctx, 35 xmlSAXLocatorPtr loc); 36 37 XML_DEPRECATED 38 XMLPUBFUN int XMLCALL 39 getLineNumber (void *ctx); 40 XML_DEPRECATED 41 XMLPUBFUN int XMLCALL 42 getColumnNumber (void *ctx); 43 44 XML_DEPRECATED 45 XMLPUBFUN int XMLCALL 46 isStandalone (void *ctx); 47 XML_DEPRECATED 48 XMLPUBFUN int XMLCALL 49 hasInternalSubset (void *ctx); 50 XML_DEPRECATED 51 XMLPUBFUN int XMLCALL 52 hasExternalSubset (void *ctx); 53 54 XML_DEPRECATED 55 XMLPUBFUN void XMLCALL 56 internalSubset (void *ctx, 57 const xmlChar *name, 58 const xmlChar *ExternalID, 59 const xmlChar *SystemID); 60 XML_DEPRECATED 61 XMLPUBFUN void XMLCALL 62 externalSubset (void *ctx, 63 const xmlChar *name, 64 const xmlChar *ExternalID, 65 const xmlChar *SystemID); 66 XML_DEPRECATED 67 XMLPUBFUN xmlEntityPtr XMLCALL 68 getEntity (void *ctx, 69 const xmlChar *name); 70 XML_DEPRECATED 71 XMLPUBFUN xmlEntityPtr XMLCALL 72 getParameterEntity (void *ctx, 73 const xmlChar *name); 74 XML_DEPRECATED 75 XMLPUBFUN xmlParserInputPtr XMLCALL 76 resolveEntity (void *ctx, 77 const xmlChar *publicId, 78 const xmlChar *systemId); 79 80 XML_DEPRECATED 81 XMLPUBFUN void XMLCALL 82 entityDecl (void *ctx, 83 const xmlChar *name, 84 int type, 85 const xmlChar *publicId, 86 const xmlChar *systemId, 87 xmlChar *content); 88 XML_DEPRECATED 89 XMLPUBFUN void XMLCALL 90 attributeDecl (void *ctx, 91 const xmlChar *elem, 92 const xmlChar *fullname, 93 int type, 94 int def, 95 const xmlChar *defaultValue, 96 xmlEnumerationPtr tree); 97 XML_DEPRECATED 98 XMLPUBFUN void XMLCALL 99 elementDecl (void *ctx, 100 const xmlChar *name, 101 int type, 102 xmlElementContentPtr content); 103 XML_DEPRECATED 104 XMLPUBFUN void XMLCALL 105 notationDecl (void *ctx, 106 const xmlChar *name, 107 const xmlChar *publicId, 108 const xmlChar *systemId); 109 XML_DEPRECATED 110 XMLPUBFUN void XMLCALL 111 unparsedEntityDecl (void *ctx, 112 const xmlChar *name, 113 const xmlChar *publicId, 114 const xmlChar *systemId, 115 const xmlChar *notationName); 116 117 XML_DEPRECATED 118 XMLPUBFUN void XMLCALL 119 startDocument (void *ctx); 120 XML_DEPRECATED 121 XMLPUBFUN void XMLCALL 122 endDocument (void *ctx); 123 XML_DEPRECATED 124 XMLPUBFUN void XMLCALL 125 attribute (void *ctx, 126 const xmlChar *fullname, 127 const xmlChar *value); 128 XML_DEPRECATED 129 XMLPUBFUN void XMLCALL 130 startElement (void *ctx, 131 const xmlChar *fullname, 132 const xmlChar **atts); 133 XML_DEPRECATED 134 XMLPUBFUN void XMLCALL 135 endElement (void *ctx, 136 const xmlChar *name); 137 XML_DEPRECATED 138 XMLPUBFUN void XMLCALL 139 reference (void *ctx, 140 const xmlChar *name); 141 XML_DEPRECATED 142 XMLPUBFUN void XMLCALL 143 characters (void *ctx, 144 const xmlChar *ch, 145 int len); 146 XML_DEPRECATED 147 XMLPUBFUN void XMLCALL 148 ignorableWhitespace (void *ctx, 149 const xmlChar *ch, 150 int len); 151 XML_DEPRECATED 152 XMLPUBFUN void XMLCALL 153 processingInstruction (void *ctx, 154 const xmlChar *target, 155 const xmlChar *data); 156 XML_DEPRECATED 157 XMLPUBFUN void XMLCALL 158 globalNamespace (void *ctx, 159 const xmlChar *href, 160 const xmlChar *prefix); 161 XML_DEPRECATED 162 XMLPUBFUN void XMLCALL 163 setNamespace (void *ctx, 164 const xmlChar *name); 165 XML_DEPRECATED 166 XMLPUBFUN xmlNsPtr XMLCALL 167 getNamespace (void *ctx); 168 XML_DEPRECATED 169 XMLPUBFUN int XMLCALL 170 checkNamespace (void *ctx, 171 xmlChar *nameSpace); 172 XML_DEPRECATED 173 XMLPUBFUN void XMLCALL 174 namespaceDecl (void *ctx, 175 const xmlChar *href, 176 const xmlChar *prefix); 177 XML_DEPRECATED 178 XMLPUBFUN void XMLCALL 179 comment (void *ctx, 180 const xmlChar *value); 181 XML_DEPRECATED 182 XMLPUBFUN void XMLCALL 183 cdataBlock (void *ctx, 184 const xmlChar *value, 185 int len); 186 187 #ifdef LIBXML_SAX1_ENABLED 188 XML_DEPRECATED 189 XMLPUBFUN void XMLCALL 190 initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr, 191 int warning); 192 #ifdef LIBXML_HTML_ENABLED 193 XML_DEPRECATED 194 XMLPUBFUN void XMLCALL 195 inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr); 196 #endif 197 #ifdef LIBXML_DOCB_ENABLED 198 XML_DEPRECATED 199 XMLPUBFUN void XMLCALL 200 initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr); 201 #endif 202 #endif /* LIBXML_SAX1_ENABLED */ 203 204 #ifdef __cplusplus 205 } 206 #endif 207 208 #endif /* LIBXML_LEGACY_ENABLED */ 209 210 #endif /* __XML_SAX_H__ */ 211