xmlsave.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. (*
  2. * Summary: the XML document serializer
  3. * Description: API to save document or subtree of document
  4. *
  5. * Copy: See Copyright for the status of this software.
  6. *
  7. * Author: Daniel Veillard
  8. *)
  9. {$IFDEF LIBXML_OUTPUT_ENABLED}
  10. {$IFDEF POINTER}
  11. xmlSaveCtxtPtr = ^xmlSaveCtxt;
  12. {$ENDIF}
  13. (**
  14. * xmlSaveOption:
  15. *
  16. * This is the set of XML save options that can be passed down
  17. * to the xmlSaveToFd() and similar calls.
  18. *)
  19. {$IFDEF TYPE}
  20. xmlSaveCtxt = record end;
  21. xmlSaveOption = type cint;
  22. {$ENDIF}
  23. {$IFDEF CONST}
  24. XML_SAVE_FORMAT = 1 shl 0; (* format save output *)
  25. XML_SAVE_NO_DECL = 1 shl 1; (* drop the xml declaration *)
  26. XML_SAVE_NO_EMPTY = 1 shl 2; (* no empty tags *)
  27. XML_SAVE_NO_XHTML = 1 shl 3; (* disable XHTML1 specific rules *)
  28. {$ENDIF}
  29. {$IFDEF FUNCTION}
  30. function xmlSaveToFd(fd: cint; encoding: pchar; options: cint): xmlSaveCtxtPtr; EXTDECL; external xml2lib;
  31. function xmlSaveToFilename(filename: pchar; encoding: pchar; options: cint): xmlSaveCtxtPtr; EXTDECL; external xml2lib;
  32. function xmlSaveToBuffer(buffer: xmlBufferPtr; encoding: pchar; options: cint): xmlSaveCtxtPtr; EXTDECL; external xml2lib;
  33. function xmlSaveToIO(iowrite: xmlOutputWriteCallback; ioclose: xmlOutputCloseCallback; ioctx: pointer; encoding: pchar; options: cint): xmlSaveCtxtPtr; EXTDECL; external xml2lib;
  34. function xmlSaveDoc(ctxt: xmlSaveCtxtPtr; doc: xmlDocPtr): clong; EXTDECL; external xml2lib;
  35. function xmlSaveTree(ctxt: xmlSaveCtxtPtr; node: xmlNodePtr): clong; EXTDECL; external xml2lib;
  36. function xmlSaveFlush(ctxt: xmlSaveCtxtPtr): cint; EXTDECL; external xml2lib;
  37. function xmlSaveClose(ctxt: xmlSaveCtxtPtr): cint; EXTDECL; external xml2lib;
  38. function xmlSaveSetEscape(ctxt: xmlSaveCtxtPtr; escape: xmlCharEncodingOutputFunc): cint; EXTDECL; external xml2lib;
  39. function xmlSaveSetAttrEscape(ctxt: xmlSaveCtxtPtr; escape: xmlCharEncodingOutputFunc): cint; EXTDECL; external xml2lib;
  40. {$ENDIF}
  41. {$ENDIF} (* LIBXML_OUTPUT_ENABLED *)