annotate modules/javafx.web/src/main/native/Source/ThirdParty/libxml/src/include/libxml/xmlsave.h @ 10839:d4868b8fd76f

8197463: Update libxml2 to version 2.9.7 Reviewed-by: kcr, mbilla
author arajkumar
date Wed, 14 Feb 2018 07:01:23 -0800
parents 4b66f694e70f
children
rev   line source
arajkumar@10500 1 /*
arajkumar@10500 2 * Summary: the XML document serializer
arajkumar@10500 3 * Description: API to save document or subtree of document
arajkumar@10500 4 *
arajkumar@10500 5 * Copy: See Copyright for the status of this software.
arajkumar@10500 6 *
arajkumar@10500 7 * Author: Daniel Veillard
arajkumar@10500 8 */
arajkumar@10500 9
arajkumar@10500 10 #ifndef __XML_XMLSAVE_H__
arajkumar@10500 11 #define __XML_XMLSAVE_H__
arajkumar@10500 12
arajkumar@10500 13 #include <libxml/xmlversion.h>
arajkumar@10500 14 #include <libxml/tree.h>
arajkumar@10500 15 #include <libxml/encoding.h>
arajkumar@10500 16 #include <libxml/xmlIO.h>
arajkumar@10500 17
arajkumar@10500 18 #ifdef LIBXML_OUTPUT_ENABLED
arajkumar@10500 19 #ifdef __cplusplus
arajkumar@10500 20 extern "C" {
arajkumar@10500 21 #endif
arajkumar@10500 22
arajkumar@10500 23 /**
arajkumar@10500 24 * xmlSaveOption:
arajkumar@10500 25 *
arajkumar@10500 26 * This is the set of XML save options that can be passed down
arajkumar@10500 27 * to the xmlSaveToFd() and similar calls.
arajkumar@10500 28 */
arajkumar@10500 29 typedef enum {
arajkumar@10500 30 XML_SAVE_FORMAT = 1<<0, /* format save output */
arajkumar@10500 31 XML_SAVE_NO_DECL = 1<<1, /* drop the xml declaration */
arajkumar@10500 32 XML_SAVE_NO_EMPTY = 1<<2, /* no empty tags */
arajkumar@10500 33 XML_SAVE_NO_XHTML = 1<<3, /* disable XHTML1 specific rules */
arajkumar@10500 34 XML_SAVE_XHTML = 1<<4, /* force XHTML1 specific rules */
arajkumar@10500 35 XML_SAVE_AS_XML = 1<<5, /* force XML serialization on HTML doc */
arajkumar@10839 36 XML_SAVE_AS_HTML = 1<<6, /* force HTML serialization on XML doc */
arajkumar@10839 37 XML_SAVE_WSNONSIG = 1<<7 /* format with non-significant whitespace */
arajkumar@10500 38 } xmlSaveOption;
arajkumar@10500 39
arajkumar@10500 40
arajkumar@10500 41 typedef struct _xmlSaveCtxt xmlSaveCtxt;
arajkumar@10500 42 typedef xmlSaveCtxt *xmlSaveCtxtPtr;
arajkumar@10500 43
arajkumar@10500 44 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
arajkumar@10500 45 xmlSaveToFd (int fd,
arajkumar@10500 46 const char *encoding,
arajkumar@10500 47 int options);
arajkumar@10500 48 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
arajkumar@10500 49 xmlSaveToFilename (const char *filename,
arajkumar@10500 50 const char *encoding,
arajkumar@10500 51 int options);
arajkumar@10500 52
arajkumar@10500 53 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
arajkumar@10500 54 xmlSaveToBuffer (xmlBufferPtr buffer,
arajkumar@10500 55 const char *encoding,
arajkumar@10500 56 int options);
arajkumar@10500 57
arajkumar@10500 58 XMLPUBFUN xmlSaveCtxtPtr XMLCALL
arajkumar@10500 59 xmlSaveToIO (xmlOutputWriteCallback iowrite,
arajkumar@10500 60 xmlOutputCloseCallback ioclose,
arajkumar@10500 61 void *ioctx,
arajkumar@10500 62 const char *encoding,
arajkumar@10500 63 int options);
arajkumar@10500 64
arajkumar@10500 65 XMLPUBFUN long XMLCALL
arajkumar@10500 66 xmlSaveDoc (xmlSaveCtxtPtr ctxt,
arajkumar@10500 67 xmlDocPtr doc);
arajkumar@10500 68 XMLPUBFUN long XMLCALL
arajkumar@10500 69 xmlSaveTree (xmlSaveCtxtPtr ctxt,
arajkumar@10500 70 xmlNodePtr node);
arajkumar@10500 71
arajkumar@10500 72 XMLPUBFUN int XMLCALL
arajkumar@10500 73 xmlSaveFlush (xmlSaveCtxtPtr ctxt);
arajkumar@10500 74 XMLPUBFUN int XMLCALL
arajkumar@10500 75 xmlSaveClose (xmlSaveCtxtPtr ctxt);
arajkumar@10500 76 XMLPUBFUN int XMLCALL
arajkumar@10500 77 xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
arajkumar@10500 78 xmlCharEncodingOutputFunc escape);
arajkumar@10500 79 XMLPUBFUN int XMLCALL
arajkumar@10500 80 xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt,
arajkumar@10500 81 xmlCharEncodingOutputFunc escape);
arajkumar@10500 82 #ifdef __cplusplus
arajkumar@10500 83 }
arajkumar@10500 84 #endif
arajkumar@10500 85 #endif /* LIBXML_OUTPUT_ENABLED */
arajkumar@10500 86 #endif /* __XML_XMLSAVE_H__ */
arajkumar@10500 87
arajkumar@10500 88