xmlsave.h

00001 /*
00002 
00003  * Summary: the XML document serializer
00004 
00005  * Description: API to save document or subtree of document
00006 
00007  *
00008 
00009  * Copy: See Copyright for the status of this software.
00010 
00011  *
00012 
00013  * Author: Daniel Veillard
00014 
00015  */
00016 
00017 
00018 
00019 #ifndef __XML_XMLSAVE_H__
00020 
00021 #define __XML_XMLSAVE_H__
00022 
00023 
00024 
00025 #include <libxml/xmlversion.h>
00026 
00027 #include <libxml/tree.h>
00028 
00029 #include <libxml/encoding.h>
00030 
00031 #include <libxml/xmlIO.h>
00032 
00033 
00034 
00035 #ifdef LIBXML_OUTPUT_ENABLED
00036 
00037 #ifdef __cplusplus
00038 
00039 extern "C" {
00040 
00041 #endif
00042 
00043 
00044 
00057 typedef enum {
00058 
00059     XML_SAVE_FORMAT     = 1<<0  /* format save output */
00060 
00061 } xmlSaveOption;
00062 
00063 
00064 
00065 
00066 
00067 typedef struct _xmlSaveCtxt xmlSaveCtxt;
00068 
00069 typedef xmlSaveCtxt *xmlSaveCtxtPtr;
00070 
00071 
00072 
00073 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00074 
00075                 xmlSaveToFd             (int fd,
00076 
00077                                          const char *encoding,
00078 
00079                                          int options);
00080 
00081 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00082 
00083                 xmlSaveToFilename       (const char *filename,
00084 
00085                                          const char *encoding,
00086 
00087                                          int options);
00088 
00089 /******
00090 
00091   Not yet implemented.
00092 
00093 
00094 
00095 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00096 
00097                 xmlSaveToBuffer         (xmlBufferPtr buffer,
00098 
00099                                          const char *encoding,
00100 
00101                                          int options);
00102 
00103  ******/
00104 
00105 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00106 
00107                 xmlSaveToIO             (xmlOutputWriteCallback iowrite,
00108 
00109                                          xmlOutputCloseCallback ioclose,
00110 
00111                                          void *ioctx,
00112 
00113                                          const char *encoding,
00114 
00115                                          int options);
00116 
00117 
00118 
00119 XMLPUBFUN long XMLCALL
00120 
00121                 xmlSaveDoc              (xmlSaveCtxtPtr ctxt,
00122 
00123                                          xmlDocPtr doc);
00124 
00125 XMLPUBFUN long XMLCALL
00126 
00127                 xmlSaveTree             (xmlSaveCtxtPtr ctxt,
00128 
00129                                          xmlNodePtr node);
00130 
00131 
00132 
00133 XMLPUBFUN int XMLCALL
00134 
00135                 xmlSaveFlush            (xmlSaveCtxtPtr ctxt);
00136 
00137 XMLPUBFUN int XMLCALL
00138 
00139                 xmlSaveClose            (xmlSaveCtxtPtr ctxt);
00140 
00141 XMLPUBFUN int XMLCALL
00142 
00143                 xmlSaveSetEscape        (xmlSaveCtxtPtr ctxt,
00144 
00145                                          xmlCharEncodingOutputFunc escape);
00146 
00147 XMLPUBFUN int XMLCALL
00148 
00149                 xmlSaveSetAttrEscape    (xmlSaveCtxtPtr ctxt,
00150 
00151                                          xmlCharEncodingOutputFunc escape);
00152 
00153 #ifdef __cplusplus
00154 
00155 }
00156 
00157 #endif
00158 
00159 #endif /* LIBXML_OUTPUT_ENABLED */
00160 
00161 #endif /* __XML_XMLSAVE_H__ */
00162 
00163 
00164 
00165 
00166 

Generated on Wed Jul 26 13:30:46 2006 for XSB by  doxygen 1.4.5