| 12307 | */ |
| 12308 | |
| 12309 | int |
| 12310 | xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data, |
| 12311 | int depth, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *list) { |
| 12312 | xmlParserCtxtPtr ctxt; |
| 12313 | int ret; |
| 12314 | |
| 12315 | if (list != NULL) |
| 12316 | *list = NULL; |
| 12317 | |
| 12318 | if (doc == NULL) |
| 12319 | return(XML_ERR_ARGUMENT); |
| 12320 | |
| 12321 | ctxt = xmlNewSAXParserCtxt(sax, user_data); |
| 12322 | if (ctxt == NULL) |
| 12323 | return(XML_ERR_NO_MEMORY); |
| 12324 | |
| 12325 | ctxt->depth = depth; |
| 12326 | ctxt->myDoc = doc; |
| 12327 | ret = xmlParseCtxtExternalEntity(ctxt, URL, ID, list); |
| 12328 | |
| 12329 | xmlFreeParserCtxt(ctxt); |
| 12330 | return(ret); |
| 12331 | } |
| 12332 | |
| 12333 | /** |
| 12334 | * xmlParseBalancedChunkMemory: |
nothing calls this directly
no test coverage detected