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