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> |
| 15 | #include <libxml/xmlIO.h> |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | typedef struct _xmlSaveCtxt xmlSaveCtxt; |
| 22 | typedef xmlSaveCtxt *xmlSaveCtxtPtr; |
| 23 | |
| 24 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 25 | xmlSaveToFd (int fd, |
| 26 | const char *encoding, |
| 27 | int options); |
| 28 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 29 | xmlSaveToFilename (const char *filename, |
| 30 | const char *encoding, |
| 31 | int options); |
| 32 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 33 | xmlSaveToBuffer (xmlBufferPtr buffer, |
| 34 | const char *encoding, |
| 35 | int options); |
| 36 | XMLPUBFUN xmlSaveCtxtPtr XMLCALL |
| 37 | xmlSaveToIO (xmlOutputWriteCallback iowrite, |
| 38 | xmlOutputCloseCallback ioclose, |
| 39 | void *ioctx, |
| 40 | const char *encoding, |
| 41 | int options); |
| 42 | |
| 43 | XMLPUBFUN long XMLCALL |
| 44 | xmlSaveDoc (xmlSaveCtxtPtr ctxt, |
| 45 | xmlDocPtr doc); |
| 46 | XMLPUBFUN long XMLCALL |
| 47 | xmlSaveTree (xmlSaveCtxtPtr ctxt, |
| 48 | xmlNodePtr node); |
| 49 | |
| 50 | XMLPUBFUN int XMLCALL |
| 51 | xmlSaveFlush (xmlSaveCtxtPtr ctxt); |
| 52 | XMLPUBFUN int XMLCALL |
| 53 | xmlSaveClose (xmlSaveCtxtPtr ctxt); |
| 54 | #ifdef __cplusplus |
| 55 | } |
| 56 | #endif |
| 57 | #endif /* __XML_XMLSAVE_H__ */ |
| 58 | |
| 59 | |