MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXIncludeProcessFlagsData

Function xmlXIncludeProcessFlagsData

ThirdParty/libxml2/vtklibxml2/xinclude.c:2341–2351  ·  view source on GitHub ↗

* xmlXIncludeProcessFlagsData: * @doc: an XML document * @flags: a set of xmlParserOption used for parsing XML includes * @data: application data that will be passed to the parser context * in the _private field of the parser context(s) * * Implement the XInclude substitution on the XML document @doc * * Returns 0 if no substitution were done, -1 if some processing failed * or t

Source from the content-addressed store, hash-verified

2339 * or the number of substitutions done.
2340 */
2341int
2342xmlXIncludeProcessFlagsData(xmlDocPtr doc, int flags, void *data) {
2343 xmlNodePtr tree;
2344
2345 if (doc == NULL)
2346 return(-1);
2347 tree = xmlDocGetRootElement(doc);
2348 if (tree == NULL)
2349 return(-1);
2350 return(xmlXIncludeProcessTreeFlagsData(tree, flags, data));
2351}
2352
2353/**
2354 * xmlXIncludeProcessFlags:

Callers 1

xmlXIncludeProcessFlagsFunction · 0.85

Calls 2

xmlDocGetRootElementFunction · 0.85

Tested by

no test coverage detected