Eneboo - Documentación para desarrolladores
|
00001 /* 00002 * Summary: the XML document serializer 00003 * Description: API to save document or subtree of document 00004 * 00005 * Copy: See Copyright for the status of this software. 00006 * 00007 * Author: Daniel Veillard 00008 */ 00009 00010 #ifndef __XML_XMLSAVE_H__ 00011 #define __XML_XMLSAVE_H__ 00012 00013 #include <libxml/xmlversion.h> 00014 #include <libxml/tree.h> 00015 #include <libxml/encoding.h> 00016 #include <libxml/xmlIO.h> 00017 00018 #ifdef LIBXML_OUTPUT_ENABLED 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00029 typedef enum { 00030 XML_SAVE_FORMAT = 1<<0, /* format save output */ 00031 XML_SAVE_NO_DECL = 1<<1, /* drop the xml declaration */ 00032 XML_SAVE_NO_EMPTY = 1<<2, /* no empty tags */ 00033 XML_SAVE_NO_XHTML = 1<<3, /* disable XHTML1 specific rules */ 00034 XML_SAVE_XHTML = 1<<4, /* force XHTML1 specific rules */ 00035 XML_SAVE_AS_XML = 1<<5, /* force XML serialization on HTML doc */ 00036 XML_SAVE_AS_HTML = 1<<6 /* force HTML serialization on XML doc */ 00037 } xmlSaveOption; 00038 00039 00040 typedef struct _xmlSaveCtxt xmlSaveCtxt; 00041 typedef xmlSaveCtxt *xmlSaveCtxtPtr; 00042 00043 XMLPUBFUN xmlSaveCtxtPtr XMLCALL 00044 xmlSaveToFd (int fd, 00045 const char *encoding, 00046 int options); 00047 XMLPUBFUN xmlSaveCtxtPtr XMLCALL 00048 xmlSaveToFilename (const char *filename, 00049 const char *encoding, 00050 int options); 00051 00052 XMLPUBFUN xmlSaveCtxtPtr XMLCALL 00053 xmlSaveToBuffer (xmlBufferPtr buffer, 00054 const char *encoding, 00055 int options); 00056 00057 XMLPUBFUN xmlSaveCtxtPtr XMLCALL 00058 xmlSaveToIO (xmlOutputWriteCallback iowrite, 00059 xmlOutputCloseCallback ioclose, 00060 void *ioctx, 00061 const char *encoding, 00062 int options); 00063 00064 XMLPUBFUN long XMLCALL 00065 xmlSaveDoc (xmlSaveCtxtPtr ctxt, 00066 xmlDocPtr doc); 00067 XMLPUBFUN long XMLCALL 00068 xmlSaveTree (xmlSaveCtxtPtr ctxt, 00069 xmlNodePtr node); 00070 00071 XMLPUBFUN int XMLCALL 00072 xmlSaveFlush (xmlSaveCtxtPtr ctxt); 00073 XMLPUBFUN int XMLCALL 00074 xmlSaveClose (xmlSaveCtxtPtr ctxt); 00075 XMLPUBFUN int XMLCALL 00076 xmlSaveSetEscape (xmlSaveCtxtPtr ctxt, 00077 xmlCharEncodingOutputFunc escape); 00078 XMLPUBFUN int XMLCALL 00079 xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt, 00080 xmlCharEncodingOutputFunc escape); 00081 #ifdef __cplusplus 00082 } 00083 #endif 00084 #endif /* LIBXML_OUTPUT_ENABLED */ 00085 #endif /* __XML_XMLSAVE_H__ */ 00086 00087