Lines Matching refs:pctxt
428 xmlParserCtxtPtr pctxt; in xmlXIncludeParseFile() local
433 pctxt = xmlNewParserCtxt(); in xmlXIncludeParseFile()
434 if (pctxt == NULL) { in xmlXIncludeParseFile()
442 pctxt->_private = ctxt->_private; in xmlXIncludeParseFile()
449 if (pctxt->dict != NULL) in xmlXIncludeParseFile()
450 xmlDictFree(pctxt->dict); in xmlXIncludeParseFile()
451 pctxt->dict = ctxt->doc->dict; in xmlXIncludeParseFile()
452 xmlDictReference(pctxt->dict); in xmlXIncludeParseFile()
455 xmlCtxtUseOptions(pctxt, ctxt->parseFlags | XML_PARSE_DTDLOAD); in xmlXIncludeParseFile()
461 inputStream = xmlLoadExternalEntity(URL, NULL, pctxt); in xmlXIncludeParseFile()
463 xmlFreeParserCtxt(pctxt); in xmlXIncludeParseFile()
467 inputPush(pctxt, inputStream); in xmlXIncludeParseFile()
469 if (pctxt->directory == NULL) in xmlXIncludeParseFile()
470 pctxt->directory = xmlParserGetDirectory(URL); in xmlXIncludeParseFile()
472 pctxt->loadsubset |= XML_DETECT_IDS; in xmlXIncludeParseFile()
474 xmlParseDocument(pctxt); in xmlXIncludeParseFile()
476 if (pctxt->wellFormed) { in xmlXIncludeParseFile()
477 ret = pctxt->myDoc; in xmlXIncludeParseFile()
481 if (pctxt->myDoc != NULL) in xmlXIncludeParseFile()
482 xmlFreeDoc(pctxt->myDoc); in xmlXIncludeParseFile()
483 pctxt->myDoc = NULL; in xmlXIncludeParseFile()
485 xmlFreeParserCtxt(pctxt); in xmlXIncludeParseFile()
1804 xmlParserCtxtPtr pctxt; in xmlXIncludeLoadTxt() local
1885 pctxt = xmlNewParserCtxt(); in xmlXIncludeLoadTxt()
1886 inputStream = xmlLoadExternalEntity((const char*)URL, NULL, pctxt); in xmlXIncludeLoadTxt()
1888 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()
1895 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()
1929 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()
1942 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()