Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 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 | |
| 10 | #ifndef __XML_XMLSAVE_H__ |
| 11 | #define __XML_XMLSAVE_H__ |
| 12 | |
| 13 | #include <libxml/xmlversion.h> |
| 14 | #include <libxml/tree.h> |
Daniel Veillard | 3995bc3 | 2004-05-15 18:57:31 +0000 | [diff] [blame^] | 15 | #include <libxml/encoding.h> |
Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 16 | #include <libxml/xmlIO.h> |
| 17 | |
Daniel Veillard | 2156d43 | 2004-03-04 15:59:36 +0000 | [diff] [blame] | 18 | #ifdef LIBXML_OUTPUT_ENABLED |
Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 19 | #ifdef __cplusplus |
| 20 | extern "C" { |
| 21 | #endif |
| 22 | |
| 23 | typedef struct _xmlSaveCtxt xmlSaveCtxt; |
| 24 | typedef xmlSaveCtxt *xmlSaveCtxtPtr; |
| 25 | |
| 26 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 27 | xmlSaveToFd (int fd, |
| 28 | const char *encoding, |
| 29 | int options); |
| 30 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 31 | xmlSaveToFilename (const char *filename, |
| 32 | const char *encoding, |
| 33 | int options); |
| 34 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 35 | xmlSaveToBuffer (xmlBufferPtr buffer, |
| 36 | const char *encoding, |
| 37 | int options); |
| 38 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 39 | xmlSaveToIO (xmlOutputWriteCallback iowrite, |
| 40 | xmlOutputCloseCallback ioclose, |
| 41 | void *ioctx, |
| 42 | const char *encoding, |
| 43 | int options); |
| 44 | |
| 45 | XMLPUBFUN long XMLCALL |
| 46 | xmlSaveDoc (xmlSaveCtxtPtr ctxt, |
| 47 | xmlDocPtr doc); |
| 48 | XMLPUBFUN long XMLCALL |
| 49 | xmlSaveTree (xmlSaveCtxtPtr ctxt, |
| 50 | xmlNodePtr node); |
| 51 | |
| 52 | XMLPUBFUN int XMLCALL |
| 53 | xmlSaveFlush (xmlSaveCtxtPtr ctxt); |
| 54 | XMLPUBFUN int XMLCALL |
| 55 | xmlSaveClose (xmlSaveCtxtPtr ctxt); |
Daniel Veillard | 3995bc3 | 2004-05-15 18:57:31 +0000 | [diff] [blame^] | 56 | XMLPUBFUN int XMLCALL |
| 57 | xmlSaveSetEscape (xmlSaveCtxtPtr ctxt, |
| 58 | xmlCharEncodingOutputFunc escape); |
| 59 | XMLPUBFUN int XMLCALL |
| 60 | xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt, |
| 61 | xmlCharEncodingOutputFunc escape); |
Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 62 | #ifdef __cplusplus |
| 63 | } |
| 64 | #endif |
Daniel Veillard | 2156d43 | 2004-03-04 15:59:36 +0000 | [diff] [blame] | 65 | #endif /* LIBXML_OUTPUT_ENABLED */ |
Daniel Veillard | 1a8741c | 2004-03-04 13:40:59 +0000 | [diff] [blame] | 66 | #endif /* __XML_XMLSAVE_H__ */ |
| 67 | |
| 68 | |