* 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
| 2339 | * or the number of substitutions done. |
| 2340 | */ |
| 2341 | int |
| 2342 | xmlXIncludeProcessFlagsData(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: |
no test coverage detected