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

Function xmlParseExternalEntity

ThirdParty/libxml2/vtklibxml2/parser.c:12309–12331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12307 */
12308
12309int
12310xmlParseExternalEntity(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:

Callers

nothing calls this directly

Calls 3

xmlNewSAXParserCtxtFunction · 0.85
xmlFreeParserCtxtFunction · 0.85

Tested by

no test coverage detected