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