Lines Matching refs:pctxt

423     xmlParserCtxtPtr pctxt;  in xmlXIncludeParseFile()  local
428 pctxt = xmlNewParserCtxt(); in xmlXIncludeParseFile()
429 if (pctxt == NULL) { in xmlXIncludeParseFile()
437 pctxt->_private = ctxt->_private; in xmlXIncludeParseFile()
444 if (pctxt->dict != NULL) in xmlXIncludeParseFile()
445 xmlDictFree(pctxt->dict); in xmlXIncludeParseFile()
446 pctxt->dict = ctxt->doc->dict; in xmlXIncludeParseFile()
447 xmlDictReference(pctxt->dict); in xmlXIncludeParseFile()
450 xmlCtxtUseOptions(pctxt, ctxt->parseFlags | XML_PARSE_DTDLOAD); in xmlXIncludeParseFile()
452 inputStream = xmlLoadExternalEntity(URL, NULL, pctxt); in xmlXIncludeParseFile()
454 xmlFreeParserCtxt(pctxt); in xmlXIncludeParseFile()
458 inputPush(pctxt, inputStream); in xmlXIncludeParseFile()
460 if (pctxt->directory == NULL) in xmlXIncludeParseFile()
461 pctxt->directory = xmlParserGetDirectory(URL); in xmlXIncludeParseFile()
463 pctxt->loadsubset |= XML_DETECT_IDS; in xmlXIncludeParseFile()
465 xmlParseDocument(pctxt); in xmlXIncludeParseFile()
467 if (pctxt->wellFormed) { in xmlXIncludeParseFile()
468 ret = pctxt->myDoc; in xmlXIncludeParseFile()
472 if (pctxt->myDoc != NULL) in xmlXIncludeParseFile()
473 xmlFreeDoc(pctxt->myDoc); in xmlXIncludeParseFile()
474 pctxt->myDoc = NULL; in xmlXIncludeParseFile()
476 xmlFreeParserCtxt(pctxt); in xmlXIncludeParseFile()
1805 xmlParserCtxtPtr pctxt; in xmlXIncludeLoadTxt() local
1882 pctxt = xmlNewParserCtxt(); in xmlXIncludeLoadTxt()
1883 inputStream = xmlLoadExternalEntity((const char*)URL, NULL, pctxt); in xmlXIncludeLoadTxt()
1885 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()
1892 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()
1938 xmlFreeParserCtxt(pctxt); in xmlXIncludeLoadTxt()