Lines Matching refs:doc
1740 xmlDocPtr doc;
1749 doc = xmlParseFile(filename);
1751 doc = xmlReadFile(filename, NULL, 0);
1753 if (doc == NULL)
1760 xmlSaveFile(temp, doc);
1764 xmlFreeDoc(doc);
1770 doc = xmlParseFile(temp);
1772 doc = xmlReadFile(temp, NULL, 0);
1774 if (doc == NULL)
1776 xmlSaveFile(temp, doc);
1780 xmlFreeDoc(doc);
1804 xmlDocPtr doc;
1846 doc = ctxt->myDoc;
1856 xmlFreeDoc(doc);
1862 htmlDocDumpMemory(doc, (xmlChar **) &base, &size);
1865 xmlDocDumpMemory(doc, (xmlChar **) &base, &size);
1866 xmlFreeDoc(doc);
1902 xmlDocPtr doc;
1915 doc = xmlReadMemory(base, size, filename, NULL, 0);
1917 if (doc == NULL) {
1920 xmlDocDumpMemory(doc, (xmlChar **) &base, &size);
1921 xmlFreeDoc(doc);
1949 xmlDocPtr doc;
1957 doc = xmlReadFile(filename, NULL, options);
1958 if (doc == NULL)
1965 xmlSaveFile(temp, doc);
1969 xmlFreeDoc(doc);
1974 doc = xmlReadFile(filename, NULL, options);
1975 if (doc == NULL)
1977 xmlSaveFile(temp, doc);
1981 xmlFreeDoc(doc);
2001 xmlDocPtr doc;
2008 doc = htmlReadFile(filename, NULL, options);
2013 doc = xmlReadFile(filename, NULL, options);
2014 xmlXIncludeProcessFlags(doc, options);
2019 doc = xmlReadFile(filename, NULL, options);
2023 if (doc == NULL) {
2029 htmlDocDumpMemory(doc, (xmlChar **) &base, &size);
2032 xmlDocDumpMemory(doc, (xmlChar **) &base, &size);
2036 if (doc != NULL) {
2039 xmlFreeDoc(doc);
2204 xmlDocPtr doc;
2208 doc = xmlReadFile(filename, NULL, options);
2209 if (doc == NULL) {
2213 reader = xmlReaderWalker(doc);
2216 xmlFreeDoc(doc);
2820 xmlDocPtr doc;
2822 doc = xmlReadFile(URL, NULL, 0);
2823 if (doc == NULL)
2825 xmlFreeDoc(doc);
2889 xmlDocPtr doc;
2896 doc = xmlReadFile(filename, NULL, options);
2897 if (doc == NULL) {
2910 xmlFreeDoc(doc);
2920 validResult = xmlSchemaValidateDoc(ctxt, doc);
2947 xmlFreeDoc(doc);
3063 xmlDocPtr doc;
3069 doc = xmlReadFile(filename, NULL, options);
3070 if (doc == NULL) {
3083 xmlFreeDoc(doc);
3093 ret = xmlRelaxNGValidateDoc(ctxt, doc);
3122 xmlFreeDoc(doc);
3398 xmlDocPtr doc;
3450 doc = xmlReadFile(xml, NULL, options);
3451 if (doc == NULL) {
3460 root = xmlDocGetRootElement(doc);
3468 patternc = xmlPatterncompile((const xmlChar *) str, doc->dict,
3473 xmlFreeDoc(doc);
3488 reader = xmlReaderWalker(doc);
3498 xmlFreeDoc(doc);
3529 xmlDocPtr doc;
3541 doc = xmlReadFile(filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT);
3542 if (doc == NULL) {
3550 if(xmlDocGetRootElement(doc) == NULL) {
3552 xmlFreeDoc(doc);
3556 node = doc->children;
3563 xmlFreeDoc(doc);
3570 xmlFreeDoc(doc);
3578 xmlFreeDoc(doc);
3591 xmlFreeDoc(doc);
3605 xmlFreeDoc(doc);
3613 xmlFreeDoc(doc);
3677 xmlDocPtr doc;
3693 doc = xmlReadFile(xml_filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT);
3694 if (doc == NULL) {
3702 if(xmlDocGetRootElement(doc) == NULL) {
3704 xmlFreeDoc(doc);
3712 xpath = load_xpath_expr(doc, xpath_filename);
3715 xmlFreeDoc(doc);
3724 xmlFreeDoc(doc);
3734 ret = xmlC14NDocDumpMemory(doc,
3757 xmlFreeDoc(doc);