SAX.h 4.3 KB

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