Lines Matching defs:doc
1804 xmlDocPtr doc;
1813 doc = xmlParseFile(filename);
1815 doc = xmlReadFile(filename, NULL, 0);
1817 if (doc == NULL)
1824 xmlSaveFile(temp, doc);
1828 xmlFreeDoc(doc);
1834 doc = xmlParseFile(temp);
1836 doc = xmlReadFile(temp, NULL, 0);
1838 if (doc == NULL)
1840 xmlSaveFile(temp, doc);
1844 xmlFreeDoc(doc);
1870 xmlDocPtr doc;
1917 doc = ctxt->myDoc;
1927 xmlFreeDoc(doc);
1933 htmlDocDumpMemory(doc, (xmlChar **) &base, &size);
1936 xmlDocDumpMemory(doc, (xmlChar **) &base, &size);
1937 xmlFreeDoc(doc);
1973 xmlDocPtr doc;
1986 doc = xmlReadMemory(base, size, filename, NULL, 0);
1988 if (doc == NULL) {
1991 xmlDocDumpMemory(doc, (xmlChar **) &base, &size);
1992 xmlFreeDoc(doc);
2020 xmlDocPtr doc;
2028 doc = xmlReadFile(filename, NULL, options);
2029 if (doc == NULL)
2036 xmlSaveFile(temp, doc);
2040 xmlFreeDoc(doc);
2045 doc = xmlReadFile(filename, NULL, options);
2046 if (doc == NULL)
2048 xmlSaveFile(temp, doc);
2052 xmlFreeDoc(doc);
2074 xmlDocPtr doc;
2081 doc = htmlReadFile(filename, NULL, options);
2086 doc = xmlReadFile(filename, NULL, options);
2087 xmlXIncludeProcessFlags(doc, options);
2092 doc = xmlReadFile(filename, NULL, options);
2096 if (doc == NULL) {
2102 htmlDocDumpMemory(doc, (xmlChar **) &base, &size);
2105 xmlDocDumpMemory(doc, (xmlChar **) &base, &size);
2113 if (doc != NULL) {
2116 xmlFreeDoc(doc);
2282 xmlDocPtr doc;
2286 doc = xmlReadFile(filename, NULL, options);
2287 if (doc == NULL) {
2291 reader = xmlReaderWalker(doc);
2294 xmlFreeDoc(doc);
2918 xmlDocPtr doc;
2920 doc = xmlReadFile(URL, NULL, 0);
2921 if (doc == NULL)
2923 xmlFreeDoc(doc);
2987 xmlDocPtr doc;
2994 doc = xmlReadFile(filename, NULL, options);
2995 if (doc == NULL) {
3008 xmlFreeDoc(doc);
3018 validResult = xmlSchemaValidateDoc(ctxt, doc);
3047 xmlFreeDoc(doc);
3163 xmlDocPtr doc;
3169 doc = xmlReadFile(filename, NULL, options);
3170 if (doc == NULL) {
3183 xmlFreeDoc(doc);
3193 ret = xmlRelaxNGValidateDoc(ctxt, doc);
3225 xmlFreeDoc(doc);
3504 xmlDocPtr doc;
3556 doc = xmlReadFile(xml, NULL, options);
3557 if (doc == NULL) {
3566 root = xmlDocGetRootElement(doc);
3574 patternc = xmlPatterncompile((const xmlChar *) str, doc->dict,
3579 xmlFreeDoc(doc);
3594 reader = xmlReaderWalker(doc);
3604 xmlFreeDoc(doc);
3637 xmlDocPtr doc;
3649 doc = xmlReadFile(filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT);
3650 if (doc == NULL) {
3658 if(xmlDocGetRootElement(doc) == NULL) {
3660 xmlFreeDoc(doc);
3664 node = doc->children;
3671 xmlFreeDoc(doc);
3678 xmlFreeDoc(doc);
3686 xmlFreeDoc(doc);
3699 xmlFreeDoc(doc);
3713 xmlFreeDoc(doc);
3721 xmlFreeDoc(doc);
3784 xmlDocPtr doc;
3800 doc = xmlReadFile(xml_filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT);
3801 if (doc == NULL) {
3809 if(xmlDocGetRootElement(doc) == NULL) {
3811 xmlFreeDoc(doc);
3819 xpath = load_xpath_expr(doc, xpath_filename);
3822 xmlFreeDoc(doc);
3831 xmlFreeDoc(doc);
3841 ret = xmlC14NDocDumpMemory(doc,
3865 xmlFreeDoc(doc);