xinclude

xinclude —

Synopsis




#define     XINCLUDE_NS
#define     XINCLUDE_NODE
#define     XINCLUDE_FALLBACK
#define     XINCLUDE_HREF
#define     XINCLUDE_PARSE
#define     XINCLUDE_PARSE_XML
#define     XINCLUDE_PARSE_TEXT
#define     XINCLUDE_PARSE_ENCODING
struct      xmlXIncludeCtxt;
typedef     xmlXIncludeCtxtPtr;
int         xmlXIncludeProcess              (xmlDocPtr doc);
int         xmlXIncludeProcessTree          (xmlNodePtr tree);
xmlXIncludeCtxtPtr xmlXIncludeNewContext    (xmlDocPtr doc);
void        xmlXIncludeFreeContext          (xmlXIncludeCtxtPtr ctxt);
int         xmlXIncludeProcessNode          (xmlXIncludeCtxtPtr ctxt,
                                             xmlNodePtr tree);

Description

Details

XINCLUDE_NS

#define XINCLUDE_NS (const xmlChar *) "http://www.w3.org/2001/XInclude"


XINCLUDE_NODE

#define XINCLUDE_NODE (const xmlChar *) "include"


XINCLUDE_FALLBACK

#define XINCLUDE_FALLBACK (const xmlChar *) "fallback"


XINCLUDE_HREF

#define XINCLUDE_HREF (const xmlChar *) "href"


XINCLUDE_PARSE

#define XINCLUDE_PARSE (const xmlChar *) "parse"


XINCLUDE_PARSE_XML

#define XINCLUDE_PARSE_XML (const xmlChar *) "xml"


XINCLUDE_PARSE_TEXT

#define XINCLUDE_PARSE_TEXT (const xmlChar *) "text"


XINCLUDE_PARSE_ENCODING

#define XINCLUDE_PARSE_ENCODING (const xmlChar *) "encoding"


struct xmlXIncludeCtxt

struct xmlXIncludeCtxt;


xmlXIncludeCtxtPtr

typedef xmlXIncludeCtxt *xmlXIncludeCtxtPtr;


xmlXIncludeProcess ()

int         xmlXIncludeProcess              (xmlDocPtr doc);

Implement the XInclude substitution on the XML document doc

doc: an XML document
Returns :0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

xmlXIncludeProcessTree ()

int         xmlXIncludeProcessTree          (xmlNodePtr tree);

Implement the XInclude substitution for the given subtree

tree: a node in an XML document
Returns :0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

xmlXIncludeNewContext ()

xmlXIncludeCtxtPtr xmlXIncludeNewContext    (xmlDocPtr doc);

Creates a new XInclude context

doc: an XML Document
Returns :the new set

xmlXIncludeFreeContext ()

void        xmlXIncludeFreeContext          (xmlXIncludeCtxtPtr ctxt);

Free an XInclude context

ctxt: the XInclude context

xmlXIncludeProcessNode ()

int         xmlXIncludeProcessNode          (xmlXIncludeCtxtPtr ctxt,
                                             xmlNodePtr tree);

Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context.

ctxt: an existing XInclude context
tree:
Returns :0 if no substitution were done, -1 if some processing failed or the number of substitutions done.