You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
4.2 KiB

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