Lines Matching refs:pctxt
423 xmlParserCtxtPtr pctxt;
428 pctxt = xmlNewParserCtxt();
429 if (pctxt == NULL) {
437 pctxt->_private = ctxt->_private;
444 if (pctxt->dict != NULL)
445 xmlDictFree(pctxt->dict);
446 pctxt->dict = ctxt->doc->dict;
447 xmlDictReference(pctxt->dict);
450 xmlCtxtUseOptions(pctxt, ctxt->parseFlags | XML_PARSE_DTDLOAD);
452 inputStream = xmlLoadExternalEntity(URL, NULL, pctxt);
454 xmlFreeParserCtxt(pctxt);
458 inputPush(pctxt, inputStream);
460 if (pctxt->directory == NULL)
461 pctxt->directory = xmlParserGetDirectory(URL);
463 pctxt->loadsubset |= XML_DETECT_IDS;
465 xmlParseDocument(pctxt);
467 if (pctxt->wellFormed) {
468 ret = pctxt->myDoc;
472 if (pctxt->myDoc != NULL)
473 xmlFreeDoc(pctxt->myDoc);
474 pctxt->myDoc = NULL;
476 xmlFreeParserCtxt(pctxt);
1803 xmlParserCtxtPtr pctxt;
1880 pctxt = xmlNewParserCtxt();
1881 inputStream = xmlLoadExternalEntity((const char*)URL, NULL, pctxt);
1883 xmlFreeParserCtxt(pctxt);
1890 xmlFreeParserCtxt(pctxt);
1936 xmlFreeParserCtxt(pctxt);