1 * Summary: the XML document serializer
2 * Description: API to save document or subtree of document
4 * Copy: See Copyright for the status of this software.
6 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
8 /if not defined(XML_XMLSAVE_H__)
9 /define XML_XMLSAVE_H__
11 /include "libxmlrpg/xmlversion"
13 /if defined(LIBXML_OUTPUT_ENABLED)
15 /include "libxmlrpg/xmlTypesC"
16 /include "libxmlrpg/tree"
17 /include "libxmlrpg/encoding"
18 /include "libxmlrpg/xmlIO"
22 * This is the set of XML save options that can be passed down
23 * to the xmlSaveToFd() and similar calls.
25 d xmlSaveOption s based(######typedef######)
27 d XML_SAVE_FORMAT... Format save output
29 d XML_SAVE_NO_DECL... Drop xml declaration
31 d XML_SAVE_NO_EMPTY... No empty tags
33 d XML_SAVE_NO_XHTML... No XHTML1 specific
35 d XML_SAVE_XHTML... Frce XHTML1 specific
37 d XML_SAVE_AS_XML... Frce XML on HTML doc
39 d XML_SAVE_AS_HTML... Frce HTML on XML doc
41 d XML_SAVE_WSNONSIG... Fmt w/ non-sig space
44 d xmlSaveCtxtPtr s * based(######typedef######)
46 d xmlSaveToFd pr extproc('xmlSaveToFd')
47 d like(xmlSaveCtxtPtr)
48 d fd value like(xmlCint)
49 d encoding * value options(*string) const char *
50 d options value like(xmlCint)
52 d xmlSaveToFilename...
53 d pr extproc('xmlSaveToFilename')
54 d like(xmlSaveCtxtPtr)
55 d filename * value options(*string) const char *
56 d encoding * value options(*string) const char *
57 d options value like(xmlCint)
60 d pr extproc('xmlSaveToBuffer')
61 d like(xmlSaveCtxtPtr)
62 d buffer value like(xmlBufferPtr)
63 d encoding * value options(*string) const char *
64 d options value like(xmlCint)
66 d xmlSaveToIO pr extproc('xmlSaveToIO')
67 d like(xmlSaveCtxtPtr)
68 d iowrite value like(xmlOutputWriteCallback)
69 d ioclose value like(xmlOutputCloseCallback)
70 d ioctx * value void *
71 d encoding * value options(*string) const char *
72 d options value like(xmlCint)
74 d xmlSaveDoc pr extproc('xmlSaveDoc')
76 d ctxt value like(xmlSaveCtxtPtr)
77 d doc value like(xmlDocPtr)
79 d xmlSaveTree pr extproc('xmlSaveTree')
81 d ctxt value like(xmlSaveCtxtPtr)
82 d node value like(xmlNodePtr)
84 d xmlSaveFlush pr extproc('xmlSaveFlush')
86 d ctxt value like(xmlSaveCtxtPtr)
88 d xmlSaveClose pr extproc('xmlSaveClose')
90 d ctxt value like(xmlSaveCtxtPtr)
93 d pr extproc('xmlSaveSetEscape')
95 d ctxt value like(xmlSaveCtxtPtr)
96 d escape value like(xmlCharEncodingOutputFunc)
98 d xmlSaveSetAttrEscape...
99 d pr extproc('xmlSaveSetAttrEscape')
101 d ctxt value like(xmlSaveCtxtPtr)
102 d escape value like(xmlCharEncodingOutputFunc)
104 /endif LIBXML_OUTPUT_ENABLD
105 /endif XML_XMLSAVE_H__