Home | History | Annotate | Download | only in libxml2

Lines Matching defs:doc

1701 	    fprintf(stderr, "SAX generated a doc !\n");
1979 static void walkDoc(xmlDocPtr doc) {
1989 root = xmlDocGetRootElement(doc);
2004 patternc = xmlPatterncompile((const xmlChar *) pattern, doc->dict,
2025 doc);
2041 endTimer("walking through the doc");
2045 fprintf(stderr, "failed to walk through the doc\n");
2131 static void doXPathQuery(xmlDocPtr doc, const char *query) {
2135 ctxt = xmlXPathNewContext(doc);
2141 ctxt->node = (xmlNodePtr) doc;
2161 xmlDocPtr doc = NULL;
2175 doc = xmlNewDoc(BAD_CAST "1.0");
2176 n = xmlNewDocNode(doc, NULL, BAD_CAST "info", NULL);
2178 xmlDocSetRootElement(doc, n);
2208 doc = ctxt->myDoc;
2232 doc = htmlReadMemory((char *) base, info.st_size, filename,
2240 doc = htmlReadFile(filename, NULL, options);
2279 doc = ctxt->myDoc;
2283 xmlFreeDoc(doc);
2284 doc = NULL;
2294 doc = xmlReadFd(0, NULL, NULL, options);
2307 doc = xmlReadIO(myRead, myClose, f, filename, NULL,
2310 doc = xmlCtxtReadIO(rectxt, myRead, myClose, f,
2313 doc = NULL;
2323 doc = NULL;
2330 doc = xmlCtxtReadFile(ctxt, filename, NULL, options);
2353 doc = xmlReadMemory((char *) base, info.st_size,
2356 doc = xmlCtxtReadMemory(rectxt, (char *) base, info.st_size,
2371 doc = NULL;
2373 doc = xmlCtxtReadFile(ctxt, filename, NULL, options);
2383 doc = xmlCtxtReadFile(rectxt, filename, NULL, options);
2387 doc = xmlParseFile(filename);
2390 doc = xmlReadFile(filename, NULL, options);
2398 if (doc == NULL) {
2413 dtd = xmlGetIntSubset(doc);
2425 if (xmlXIncludeProcessFlags(doc, options) < 0)
2435 doXPathQuery(doc, xpathquery);
2445 xmlXPathOrderDocElems(doc);
2446 xmlShell(doc, filename, xmlShellReadline, stdout);
2456 tmp = doc;
2460 doc = xmlCopyDoc(doc, 1);
2480 if (doc->children != NULL) {
2481 node = doc->children;
2502 walkDoc(doc);
2521 htmlSaveFile(output ? output : "-", doc);
2525 htmlSaveFileFormat(output ? output : "-", doc, encoding, 1);
2528 htmlSaveFileFormat(output ? output : "-", doc, encoding, 0);
2532 htmlSaveFileFormat(output ? output : "-", doc, NULL, 1);
2542 if (htmlDocDump(out, doc) < 0)
2562 size = xmlC14NDocDumpMemory(doc, NULL, XML_C14N_1_0, NULL, 1, &result);
2576 size = xmlC14NDocDumpMemory(doc, NULL, XML_C14N_1_1, NULL, 1, &result);
2591 size = xmlC14NDocDumpMemory(doc, NULL, XML_C14N_EXCLUSIVE_1_0, NULL, 1, &result);
2610 xmlDocDumpFormatMemoryEnc(doc, &result, &len, encoding, 1);
2612 xmlDocDumpMemoryEnc(doc, &result, &len, encoding);
2616 xmlDocDumpFormatMemory(doc, &result, &len, 1);
2618 xmlDocDumpMemory(doc, &result, &len);
2633 xmlSaveFile(output ? output : "-", doc);
2637 ret = xmlSaveFormatFileEnc(output ? output : "-", doc,
2641 ret = xmlSaveFileEnc(output ? output : "-", doc,
2650 ret = xmlSaveFormatFile(output ? output : "-", doc, 1);
2664 if (xmlDocDump(out, doc) < 0)
2694 if (xmlSaveDoc(ctxt, doc) < 0) {
2716 xmlDebugDumpDocument(out, doc);
2769 if (!xmlValidateDtd(cvp, doc, dtd)) {
2801 if (!xmlValidateDocument(cvp, doc)) {
2835 ret = xmlSchematronValidateDoc(ctxt, doc);
2866 ret = xmlRelaxNGValidateDoc(ctxt, doc);
2894 ret = xmlSchemaValidateDoc(ctxt, doc);
2915 xmlDebugDumpEntities(stderr, doc);
2925 xmlFreeDoc(doc);
3006 fprintf(f, "\t--nowrap : do not put HTML doc wrapper\n");
3060 fprintf(f, "\t--auto : generate a small doc on the fly\n");
3070 fprintf(f, "\t--walker : create a reader and walk though the resulting doc\n");