SAX.h 4.6 KB

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