SAX.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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__ */