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

Function xmlXIncludeProcessNode

ThirdParty/libxml2/vtklibxml2/xinclude.c:2437–2448  ·  view source on GitHub ↗

* xmlXIncludeProcessNode: * @ctxt: an existing XInclude context * @node: a node in an XML document * * Implement the XInclude substitution for the given subtree reusing * the information and data coming from the given context. * * Returns 0 if no substitution were done, -1 if some processing failed * or the number of substitutions done. */

Source from the content-addressed store, hash-verified

2435 * or the number of substitutions done.
2436 */
2437int
2438xmlXIncludeProcessNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
2439 int ret = 0;
2440
2441 if ((node == NULL) || (node->type == XML_NAMESPACE_DECL) ||
2442 (node->doc == NULL) || (ctxt == NULL))
2443 return(-1);
2444 ret = xmlXIncludeDoProcessRoot(ctxt, node);
2445 if ((ret >= 0) && (ctxt->nbErrors > 0))
2446 ret = -1;
2447 return(ret);
2448}
2449
2450#else /* !LIBXML_XINCLUDE_ENABLED */
2451#endif

Callers 2

xmlTextReaderReadFunction · 0.85
errParseTestFunction · 0.85

Calls 1

xmlXIncludeDoProcessRootFunction · 0.85

Tested by 1

errParseTestFunction · 0.68