Lines Matching refs:ctxt

1555     xmlParserCtxtPtr ctxt = NULL;  in dom_document_parser()  local
1589 ctxt = xmlCreateFileParserCtxt(file_dest); in dom_document_parser()
1593 ctxt = xmlCreateMemoryParserCtxt(source, source_len); in dom_document_parser()
1596 if (ctxt == NULL) { in dom_document_parser()
1608 if(ctxt->directory != NULL) { in dom_document_parser()
1609 xmlFree((char *) ctxt->directory); in dom_document_parser()
1616 ctxt->directory = (char *) xmlCanonicPath((const xmlChar *) resolved_path); in dom_document_parser()
1620 ctxt->vctxt.error = php_libxml_ctx_error; in dom_document_parser()
1621 ctxt->vctxt.warning = php_libxml_ctx_warning; in dom_document_parser()
1623 if (ctxt->sax != NULL) { in dom_document_parser()
1624 ctxt->sax->error = php_libxml_ctx_error; in dom_document_parser()
1625 ctxt->sax->warning = php_libxml_ctx_warning; in dom_document_parser()
1641 xmlCtxtUseOptions(ctxt, options); in dom_document_parser()
1643 ctxt->recovery = recover; in dom_document_parser()
1649 xmlParseDocument(ctxt); in dom_document_parser()
1651 if (ctxt->wellFormed || recover) { in dom_document_parser()
1652 ret = ctxt->myDoc; in dom_document_parser()
1653 if (ctxt->recovery) { in dom_document_parser()
1657 if (ret && ret->URL == NULL && ctxt->directory != NULL) { in dom_document_parser()
1658 ret->URL = xmlStrdup(ctxt->directory); in dom_document_parser()
1662 xmlFreeDoc(ctxt->myDoc); in dom_document_parser()
1663 ctxt->myDoc = NULL; in dom_document_parser()
1666 xmlFreeParserCtxt(ctxt); in dom_document_parser()
2179 htmlParserCtxtPtr ctxt; in dom_load_html() local
2197 ctxt = htmlCreateFileParserCtxt(source, NULL); in dom_load_html()
2200 ctxt = htmlCreateMemoryParserCtxt(source, source_len); in dom_load_html()
2203 if (!ctxt) { in dom_load_html()
2208 htmlCtxtUseOptions(ctxt, options); in dom_load_html()
2211 ctxt->vctxt.error = php_libxml_ctx_error; in dom_load_html()
2212 ctxt->vctxt.warning = php_libxml_ctx_warning; in dom_load_html()
2213 if (ctxt->sax != NULL) { in dom_load_html()
2214 ctxt->sax->error = php_libxml_ctx_error; in dom_load_html()
2215 ctxt->sax->warning = php_libxml_ctx_warning; in dom_load_html()
2217 htmlParseDocument(ctxt); in dom_load_html()
2218 newdoc = ctxt->myDoc; in dom_load_html()
2219 htmlFreeParserCtxt(ctxt); in dom_load_html()