xinclude.h

Go to the documentation of this file.
00001 /*
00002  * Summary: implementation of XInclude
00003  * Description: API to handle XInclude processing,
00004  * implements the
00005  * World Wide Web Consortium Last Call Working Draft 10 November 2003
00006  * http://www.w3.org/TR/2003/WD-xinclude-20031110
00007  *
00008  * Copy: See Copyright for the status of this software.
00009  *
00010  * Author: Daniel Veillard
00011  */
00012 
00013 #ifndef __XML_XINCLUDE_H__
00014 #define __XML_XINCLUDE_H__
00015 
00016 #include <libxml/xmlversion.h>
00017 #include <libxml/tree.h>
00018 
00019 #ifdef LIBXML_XINCLUDE_ENABLED
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00030 #define XINCLUDE_NS (const xmlChar *) "http://www.w3.org/2003/XInclude"
00031 
00036 #define XINCLUDE_OLD_NS (const xmlChar *) "http://www.w3.org/2001/XInclude"
00037 
00042 #define XINCLUDE_NODE (const xmlChar *) "include"
00043 
00048 #define XINCLUDE_FALLBACK (const xmlChar *) "fallback"
00049 
00054 #define XINCLUDE_HREF (const xmlChar *) "href"
00055 
00060 #define XINCLUDE_PARSE (const xmlChar *) "parse"
00061 
00066 #define XINCLUDE_PARSE_XML (const xmlChar *) "xml"
00067 
00072 #define XINCLUDE_PARSE_TEXT (const xmlChar *) "text"
00073 
00078 #define XINCLUDE_PARSE_ENCODING (const xmlChar *) "encoding"
00079 
00084 #define XINCLUDE_PARSE_XPOINTER (const xmlChar *) "xpointer"
00085 
00086 typedef struct _xmlXIncludeCtxt xmlXIncludeCtxt;
00087 typedef xmlXIncludeCtxt *xmlXIncludeCtxtPtr;
00088 
00089 /*
00090  * standalone processing
00091  */
00092 XMLPUBFUN int XMLCALL   
00093         xmlXIncludeProcess  (xmlDocPtr doc);
00094 XMLPUBFUN int XMLCALL   
00095         xmlXIncludeProcessFlags (xmlDocPtr doc,
00096                      int flags);
00097 XMLPUBFUN int XMLCALL   
00098         xmlXIncludeProcessFlagsData(xmlDocPtr doc,
00099                      int flags,
00100                      void *data);
00101 XMLPUBFUN int XMLCALL   
00102         xmlXIncludeProcessTree  (xmlNodePtr tree);
00103 XMLPUBFUN int XMLCALL   
00104         xmlXIncludeProcessTreeFlags(xmlNodePtr tree,
00105                      int flags);
00106 /*
00107  * contextual processing
00108  */
00109 XMLPUBFUN xmlXIncludeCtxtPtr XMLCALL
00110         xmlXIncludeNewContext   (xmlDocPtr doc);
00111 XMLPUBFUN int XMLCALL
00112         xmlXIncludeSetFlags (xmlXIncludeCtxtPtr ctxt,
00113                      int flags);
00114 XMLPUBFUN void XMLCALL
00115         xmlXIncludeFreeContext  (xmlXIncludeCtxtPtr ctxt);
00116 XMLPUBFUN int XMLCALL
00117         xmlXIncludeProcessNode  (xmlXIncludeCtxtPtr ctxt,
00118                      xmlNodePtr tree);
00119 #ifdef __cplusplus
00120 }
00121 #endif
00122 
00123 #endif /* LIBXML_XINCLUDE_ENABLED */
00124 
00125 #endif /* __XML_XINCLUDE_H__ */
footer
 SourceForge.net Logo