HTMLtree.inc 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. (*
  2. * Summary: specific APIs to process HTML tree, especially serialization
  3. * Description: this module implements a few function needed to process
  4. * tree in an HTML specific way.
  5. *
  6. * Copy: See Copyright for the status of this software.
  7. *
  8. * Author: Daniel Veillard
  9. *)
  10. {$IFDEF LIBXML_HTML_ENABLED}
  11. {$IFDEF CONST}
  12. (**
  13. * HTML_TEXT_NODE:
  14. *
  15. * Macro. A text node in a HTML document is really implemented
  16. * the same way as a text node in an XML document.
  17. *)
  18. HTML_TEXT_NODE = XML_TEXT_NODE;
  19. (**
  20. * HTML_ENTITY_REF_NODE:
  21. *
  22. * Macro. An entity reference in a HTML document is really implemented
  23. * the same way as an entity reference in an XML document.
  24. *)
  25. HTML_ENTITY_REF_NODE = XML_ENTITY_REF_NODE;
  26. (**
  27. * HTML_COMMENT_NODE:
  28. *
  29. * Macro. A comment in a HTML document is really implemented
  30. * the same way as a comment in an XML document.
  31. *)
  32. HTML_COMMENT_NODE = XML_COMMENT_NODE;
  33. (**
  34. * HTML_PRESERVE_NODE:
  35. *
  36. * Macro. A preserved node in a HTML document is really implemented
  37. * the same way as a CDATA section in an XML document.
  38. *)
  39. HTML_PRESERVE_NODE = XML_CDATA_SECTION_NODE;
  40. (**
  41. * HTML_PI_NODE:
  42. *
  43. * Macro. A processing instruction in a HTML document is really implemented
  44. * the same way as a processing instruction in an XML document.
  45. *)
  46. HTML_PI_NODE = XML_PI_NODE;
  47. {$ENDIF}
  48. {$IFDEF FUNCTION}
  49. function htmlNewDoc(URI, ExternalID: xmlCharPtr): htmlDocPtr; EXTDECL; external xml2lib;
  50. function htmlNewDocNoDtD(URI, ExternalID: xmlCharPtr): htmlDocPtr; EXTDECL; external xml2lib;
  51. function htmlGetMetaEncoding(doc: htmlDocPtr): xmlCharPtr; EXTDECL; external xml2lib;
  52. function htmlSetMetaEncoding(doc: htmlDocPtr; encoding: xmlCharPtr): cint; EXTDECL; external xml2lib;
  53. {$IFDEF LIBXML_OUTPUT_ENABLED}
  54. procedure htmlDocDumpMemory(cur: xmlDocPtr; mem: xmlCharPtrPtr; size: pcint); EXTDECL; external xml2lib;
  55. procedure htmlDocDumpMemoryFormat(cur: xmlDocPtr; mem: xmlCharPtrPtr; size: pcint; format: cint); EXTDECL; external xml2lib;
  56. procedure htmlDocDump(f: PFILE; cur: xmlDocPtr); EXTDECL; external xml2lib;
  57. function htmlSaveFile(filename: pchar; doc: htmlDocPtr): cint; EXTDECL; external xml2lib;
  58. function htmlNodeDump(buf: xmlBufferPtr; doc: htmlDocPtr; cur: xmlNodePtr): cint; EXTDECL; external xml2lib;
  59. procedure htmlNodeDumpFile(_out: PFILE; doc: xmlDocPtr; cur: xmlNodePtr); EXTDECL; external xml2lib;
  60. function htmlNodeDumpFileFormat(_out: PFILE; doc: htmlDocPtr; cur: xmlNodePtr; encoding: pchar; format: cint): cint; EXTDECL; external xml2lib;
  61. function htmlSaveFileEnc(filename: pchar; cur: htmlDocPtr; encoding: pchar): cint; EXTDECL; external xml2lib;
  62. function htmlSaveFileFormat(filename: pchar; cur: htmlDocPtr; encoding: pchar; format: cint): cint; EXTDECL; external xml2lib;
  63. procedure htmlNodeDumpFormatOutput(buf: xmlOutputBufferPtr; doc: xmlDocPtr; cur: xmlNodePtr; encoding: pchar; format: cint); EXTDECL; external xml2lib;
  64. procedure htmlDocContentDumpOutput(buf: xmlOutputBufferPtr; cur: xmlNodePtr; encoding: pchar); EXTDECL; external xml2lib;
  65. procedure htmlDocContentDumpFormatOutput(buf: xmlOutputBufferPtr; cur: xmlNodePtr; encoding: pchar; format: cint); EXTDECL; external xml2lib;
  66. procedure htmlNodeDumpOutput(buf: xmlOutputBufferPtr; doc: xmlDocPtr; cur: xmlNodePtr; encoding: pchar); EXTDECL; external xml2lib;
  67. {$ENDIF} (* LIBXML_OUTPUT_ENABLED *)
  68. function htmlIsBooleanAttr(name: xmlCharPtr): cint; EXTDECL; external xml2lib;
  69. {$ENDIF}
  70. {$ENDIF} (* LIBXML_HTML_ENABLED *)