* xmlStreamWantsAnyNode: * @streamCtxt: the stream context * * Query if the streaming pattern additionally needs to be fed with * text-, cdata-section-, comment- and processing-instruction-nodes. * If the result is 0 then only element-nodes and attribute-nodes * need to be pushed. * * Returns: 1 in case of need of nodes of the above described types, * 0 otherwise. -1 on API error
| 2233 | * 0 otherwise. -1 on API errors. |
| 2234 | */ |
| 2235 | int |
| 2236 | xmlStreamWantsAnyNode(xmlStreamCtxtPtr streamCtxt) |
| 2237 | { |
| 2238 | if (streamCtxt == NULL) |
| 2239 | return(-1); |
| 2240 | while (streamCtxt != NULL) { |
| 2241 | if (streamCtxt->comp->flags & XML_STREAM_FINAL_IS_ANY_NODE) |
| 2242 | return(1); |
| 2243 | streamCtxt = streamCtxt->next; |
| 2244 | } |
| 2245 | return(0); |
| 2246 | } |
| 2247 | |
| 2248 | /************************************************************************ |
| 2249 | * * |
no outgoing calls
no test coverage detected