ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

xmlsave.h
Go to the documentation of this file.
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     XML_SAVE_WSNONSIG   = 1<<7  /* format with non-significant whitespace */
00038 } xmlSaveOption;
00039 
00040 
00041 typedef struct _xmlSaveCtxt xmlSaveCtxt;
00042 typedef xmlSaveCtxt *xmlSaveCtxtPtr;
00043 
00044 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00045         xmlSaveToFd     (int fd,
00046                      const char *encoding,
00047                      int options);
00048 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00049         xmlSaveToFilename   (const char *filename,
00050                      const char *encoding,
00051                      int options);
00052 
00053 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00054         xmlSaveToBuffer     (xmlBufferPtr buffer,
00055                      const char *encoding,
00056                      int options);
00057 
00058 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
00059         xmlSaveToIO     (xmlOutputWriteCallback iowrite,
00060                      xmlOutputCloseCallback ioclose,
00061                      void *ioctx,
00062                      const char *encoding,
00063                      int options);
00064 
00065 XMLPUBFUN long XMLCALL
00066         xmlSaveDoc      (xmlSaveCtxtPtr ctxt,
00067                      xmlDocPtr doc);
00068 XMLPUBFUN long XMLCALL
00069         xmlSaveTree     (xmlSaveCtxtPtr ctxt,
00070                      xmlNodePtr node);
00071 
00072 XMLPUBFUN int XMLCALL
00073         xmlSaveFlush        (xmlSaveCtxtPtr ctxt);
00074 XMLPUBFUN int XMLCALL
00075         xmlSaveClose        (xmlSaveCtxtPtr ctxt);
00076 XMLPUBFUN int XMLCALL
00077         xmlSaveSetEscape    (xmlSaveCtxtPtr ctxt,
00078                      xmlCharEncodingOutputFunc escape);
00079 XMLPUBFUN int XMLCALL
00080         xmlSaveSetAttrEscape    (xmlSaveCtxtPtr ctxt,
00081                      xmlCharEncodingOutputFunc escape);
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085 #endif /* LIBXML_OUTPUT_ENABLED */
00086 #endif /* __XML_XMLSAVE_H__ */
00087 
00088 

Generated on Sat May 26 2012 04:32:03 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.