| 2305 | */ |
| 2306 | |
| 2307 | int |
| 2308 | xmlXIncludeProcessTreeFlagsData(xmlNodePtr tree, int flags, void *data) { |
| 2309 | xmlXIncludeCtxtPtr ctxt; |
| 2310 | int ret = 0; |
| 2311 | |
| 2312 | if ((tree == NULL) || (tree->type == XML_NAMESPACE_DECL) || |
| 2313 | (tree->doc == NULL)) |
| 2314 | return(-1); |
| 2315 | |
| 2316 | ctxt = xmlXIncludeNewContext(tree->doc); |
| 2317 | if (ctxt == NULL) |
| 2318 | return(-1); |
| 2319 | ctxt->_private = data; |
| 2320 | xmlXIncludeSetFlags(ctxt, flags); |
| 2321 | ret = xmlXIncludeDoProcessRoot(ctxt, tree); |
| 2322 | if ((ret >= 0) && (ctxt->nbErrors > 0)) |
| 2323 | ret = -1; |
| 2324 | |
| 2325 | xmlXIncludeFreeContext(ctxt); |
| 2326 | return(ret); |
| 2327 | } |
| 2328 | |
| 2329 | /** |
| 2330 | * xmlXIncludeProcessFlagsData: |
no test coverage detected