• Home
  • Raw
  • Download

Lines Matching refs:ctxt

327 xmlSaveCtxtInit(xmlSaveCtxtPtr ctxt)  in xmlSaveCtxtInit()  argument
332 if (ctxt == NULL) return; in xmlSaveCtxtInit()
333 if ((ctxt->encoding == NULL) && (ctxt->escape == NULL)) in xmlSaveCtxtInit()
334 ctxt->escape = xmlEscapeEntities; in xmlSaveCtxtInit()
337 memset(&ctxt->indent[0], 0, MAX_INDENT + 1); in xmlSaveCtxtInit()
339 ctxt->indent_size = len; in xmlSaveCtxtInit()
340 ctxt->indent_nr = MAX_INDENT / ctxt->indent_size; in xmlSaveCtxtInit()
341 for (i = 0;i < ctxt->indent_nr;i++) in xmlSaveCtxtInit()
342 memcpy(&ctxt->indent[i * ctxt->indent_size], xmlTreeIndentString, in xmlSaveCtxtInit()
343 ctxt->indent_size); in xmlSaveCtxtInit()
344 ctxt->indent[ctxt->indent_nr * ctxt->indent_size] = 0; in xmlSaveCtxtInit()
348 ctxt->options |= XML_SAVE_NO_EMPTY; in xmlSaveCtxtInit()
358 xmlFreeSaveCtxt(xmlSaveCtxtPtr ctxt) in xmlFreeSaveCtxt() argument
360 if (ctxt == NULL) return; in xmlFreeSaveCtxt()
361 if (ctxt->encoding != NULL) in xmlFreeSaveCtxt()
362 xmlFree((char *) ctxt->encoding); in xmlFreeSaveCtxt()
363 if (ctxt->buf != NULL) in xmlFreeSaveCtxt()
364 xmlOutputBufferClose(ctxt->buf); in xmlFreeSaveCtxt()
365 xmlFree(ctxt); in xmlFreeSaveCtxt()
462 static int xmlSaveSwitchEncoding(xmlSaveCtxtPtr ctxt, const char *encoding) { in xmlSaveSwitchEncoding() argument
463 xmlOutputBufferPtr buf = ctxt->buf; in xmlSaveSwitchEncoding()
486 static int xmlSaveClearEncoding(xmlSaveCtxtPtr ctxt) { in xmlSaveClearEncoding() argument
487 xmlOutputBufferPtr buf = ctxt->buf; in xmlSaveClearEncoding()
498 xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur);
500 static void xmlNodeListDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur);
501 static void xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur);
503 static int xmlDocContentDumpOutput(xmlSaveCtxtPtr ctxt, xmlDocPtr cur);
513 xmlOutputBufferWriteWSNonSig(xmlSaveCtxtPtr ctxt, int extra) in xmlOutputBufferWriteWSNonSig() argument
516 if ((ctxt == NULL) || (ctxt->buf == NULL)) in xmlOutputBufferWriteWSNonSig()
518 xmlOutputBufferWrite(ctxt->buf, 1, "\n"); in xmlOutputBufferWriteWSNonSig()
519 for (i = 0; i < (ctxt->level + extra); i += ctxt->indent_nr) { in xmlOutputBufferWriteWSNonSig()
520 xmlOutputBufferWrite(ctxt->buf, ctxt->indent_size * in xmlOutputBufferWriteWSNonSig()
521 ((ctxt->level + extra - i) > ctxt->indent_nr ? in xmlOutputBufferWriteWSNonSig()
522 ctxt->indent_nr : (ctxt->level + extra - i)), in xmlOutputBufferWriteWSNonSig()
523 ctxt->indent); in xmlOutputBufferWriteWSNonSig()
538 xmlNsDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur, xmlSaveCtxtPtr ctxt) { in xmlNsDumpOutput() argument
544 if (ctxt != NULL && ctxt->format == 2) in xmlNsDumpOutput()
545 xmlOutputBufferWriteWSNonSig(ctxt, 2); in xmlNsDumpOutput()
569 xmlNsDumpOutputCtxt(xmlSaveCtxtPtr ctxt, xmlNsPtr cur) { in xmlNsDumpOutputCtxt() argument
570 xmlNsDumpOutput(ctxt->buf, cur, ctxt); in xmlNsDumpOutputCtxt()
582 xmlNsListDumpOutputCtxt(xmlSaveCtxtPtr ctxt, xmlNsPtr cur) { in xmlNsListDumpOutputCtxt() argument
584 xmlNsDumpOutput(ctxt->buf, cur, ctxt); in xmlNsListDumpOutputCtxt()
613 xmlDtdDumpOutput(xmlSaveCtxtPtr ctxt, xmlDtdPtr dtd) { in xmlDtdDumpOutput() argument
619 if ((ctxt == NULL) || (ctxt->buf == NULL)) in xmlDtdDumpOutput()
621 buf = ctxt->buf; in xmlDtdDumpOutput()
648 format = ctxt->format; in xmlDtdDumpOutput()
649 level = ctxt->level; in xmlDtdDumpOutput()
650 doc = ctxt->doc; in xmlDtdDumpOutput()
651 ctxt->format = 0; in xmlDtdDumpOutput()
652 ctxt->level = -1; in xmlDtdDumpOutput()
653 ctxt->doc = dtd->doc; in xmlDtdDumpOutput()
654 xmlNodeListDumpOutput(ctxt, dtd->children); in xmlDtdDumpOutput()
655 ctxt->format = format; in xmlDtdDumpOutput()
656 ctxt->level = level; in xmlDtdDumpOutput()
657 ctxt->doc = doc; in xmlDtdDumpOutput()
669 xmlAttrDumpOutput(xmlSaveCtxtPtr ctxt, xmlAttrPtr cur) { in xmlAttrDumpOutput() argument
673 buf = ctxt->buf; in xmlAttrDumpOutput()
675 if (ctxt->format == 2) in xmlAttrDumpOutput()
676 xmlOutputBufferWriteWSNonSig(ctxt, 2); in xmlAttrDumpOutput()
699 xmlAttrListDumpOutput(xmlSaveCtxtPtr ctxt, xmlAttrPtr cur) { in xmlAttrListDumpOutput() argument
702 xmlAttrDumpOutput(ctxt, cur); in xmlAttrListDumpOutput()
716 xmlNodeListDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in xmlNodeListDumpOutput() argument
720 buf = ctxt->buf; in xmlNodeListDumpOutput()
722 if ((ctxt->format == 1) && (xmlIndentTreeOutput) && in xmlNodeListDumpOutput()
726 xmlOutputBufferWrite(buf, ctxt->indent_size * in xmlNodeListDumpOutput()
727 (ctxt->level > ctxt->indent_nr ? in xmlNodeListDumpOutput()
728 ctxt->indent_nr : ctxt->level), in xmlNodeListDumpOutput()
729 ctxt->indent); in xmlNodeListDumpOutput()
730 xmlNodeDumpOutputInternal(ctxt, cur); in xmlNodeListDumpOutput()
731 if (ctxt->format == 1) { in xmlNodeListDumpOutput()
746 htmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in htmlNodeDumpOutputInternal() argument
748 const xmlChar *oldctxtenc = ctxt->encoding; in htmlNodeDumpOutputInternal()
749 const xmlChar *encoding = ctxt->encoding; in htmlNodeDumpOutputInternal()
750 xmlOutputBufferPtr buf = ctxt->buf; in htmlNodeDumpOutputInternal()
759 if (ctxt->encoding != NULL) { in htmlNodeDumpOutputInternal()
760 doc->encoding = BAD_CAST ctxt->encoding; in htmlNodeDumpOutputInternal()
774 if (xmlSaveSwitchEncoding(ctxt, (const char*) encoding) < 0) { in htmlNodeDumpOutputInternal()
780 if (ctxt->options & XML_SAVE_FORMAT) in htmlNodeDumpOutputInternal()
790 xmlSaveClearEncoding(ctxt); in htmlNodeDumpOutputInternal()
805 xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in xmlNodeDumpOutputInternal() argument
812 buf = ctxt->buf; in xmlNodeDumpOutputInternal()
819 xmlDocContentDumpOutput(ctxt, (xmlDocPtr) cur); in xmlNodeDumpOutputInternal()
823 if (ctxt->options & XML_SAVE_XHTML) { in xmlNodeDumpOutputInternal()
824 xhtmlNodeDumpOutput(ctxt, cur); in xmlNodeDumpOutputInternal()
829 ((ctxt->options & XML_SAVE_AS_XML) == 0)) || in xmlNodeDumpOutputInternal()
830 (ctxt->options & XML_SAVE_AS_HTML)) { in xmlNodeDumpOutputInternal()
831 htmlNodeDumpOutputInternal(ctxt, cur); in xmlNodeDumpOutputInternal()
836 xmlDtdDumpOutput(ctxt, (xmlDtdPtr) cur); in xmlNodeDumpOutputInternal()
840 xmlNodeListDumpOutput(ctxt, cur->children); in xmlNodeDumpOutputInternal()
858 xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); in xmlNodeDumpOutputInternal()
874 if (ctxt->format == 2) in xmlNodeDumpOutputInternal()
875 xmlOutputBufferWriteWSNonSig(ctxt, 0); in xmlNodeDumpOutputInternal()
884 if (ctxt->format == 2) in xmlNodeDumpOutputInternal()
885 xmlOutputBufferWriteWSNonSig(ctxt, 0); in xmlNodeDumpOutputInternal()
929 xmlAttrDumpOutput(ctxt, (xmlAttrPtr) cur); in xmlNodeDumpOutputInternal()
933 xmlNsDumpOutputCtxt(ctxt, (xmlNsPtr) cur); in xmlNodeDumpOutputInternal()
937 format = ctxt->format; in xmlNodeDumpOutputInternal()
944 ctxt->format = 0; in xmlNodeDumpOutputInternal()
958 xmlNsListDumpOutputCtxt(ctxt, cur->nsDef); in xmlNodeDumpOutputInternal()
960 xmlAttrListDumpOutput(ctxt, cur->properties); in xmlNodeDumpOutputInternal()
963 (cur->children == NULL) && ((ctxt->options & XML_SAVE_NO_EMPTY) == 0)) { in xmlNodeDumpOutputInternal()
964 if (ctxt->format == 2) in xmlNodeDumpOutputInternal()
965 xmlOutputBufferWriteWSNonSig(ctxt, 0); in xmlNodeDumpOutputInternal()
967 ctxt->format = format; in xmlNodeDumpOutputInternal()
970 if (ctxt->format == 2) in xmlNodeDumpOutputInternal()
971 xmlOutputBufferWriteWSNonSig(ctxt, 1); in xmlNodeDumpOutputInternal()
974 xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); in xmlNodeDumpOutputInternal()
977 if (ctxt->format == 1) xmlOutputBufferWrite(buf, 1, "\n"); in xmlNodeDumpOutputInternal()
978 if (ctxt->level >= 0) ctxt->level++; in xmlNodeDumpOutputInternal()
979 xmlNodeListDumpOutput(ctxt, cur->children); in xmlNodeDumpOutputInternal()
980 if (ctxt->level > 0) ctxt->level--; in xmlNodeDumpOutputInternal()
981 if ((xmlIndentTreeOutput) && (ctxt->format == 1)) in xmlNodeDumpOutputInternal()
982 xmlOutputBufferWrite(buf, ctxt->indent_size * in xmlNodeDumpOutputInternal()
983 (ctxt->level > ctxt->indent_nr ? in xmlNodeDumpOutputInternal()
984 ctxt->indent_nr : ctxt->level), in xmlNodeDumpOutputInternal()
985 ctxt->indent); in xmlNodeDumpOutputInternal()
994 if (ctxt->format == 2) in xmlNodeDumpOutputInternal()
995 xmlOutputBufferWriteWSNonSig(ctxt, 0); in xmlNodeDumpOutputInternal()
997 ctxt->format = format; in xmlNodeDumpOutputInternal()
1007 xmlDocContentDumpOutput(xmlSaveCtxtPtr ctxt, xmlDocPtr cur) { in xmlDocContentDumpOutput() argument
1013 const xmlChar *oldctxtenc = ctxt->encoding; in xmlDocContentDumpOutput()
1014 const xmlChar *encoding = ctxt->encoding; in xmlDocContentDumpOutput()
1015 xmlCharEncodingOutputFunc oldescape = ctxt->escape; in xmlDocContentDumpOutput()
1016 xmlCharEncodingOutputFunc oldescapeAttr = ctxt->escapeAttr; in xmlDocContentDumpOutput()
1017 xmlOutputBufferPtr buf = ctxt->buf; in xmlDocContentDumpOutput()
1027 if (ctxt->encoding != NULL) { in xmlDocContentDumpOutput()
1028 cur->encoding = BAD_CAST ctxt->encoding; in xmlDocContentDumpOutput()
1037 ((ctxt->options & XML_SAVE_AS_XML) == 0) && in xmlDocContentDumpOutput()
1038 ((ctxt->options & XML_SAVE_XHTML) == 0)) || in xmlDocContentDumpOutput()
1039 (ctxt->options & XML_SAVE_AS_HTML)) { in xmlDocContentDumpOutput()
1049 if (xmlSaveSwitchEncoding(ctxt, (const char*) encoding) < 0) { in xmlDocContentDumpOutput()
1054 if (ctxt->options & XML_SAVE_FORMAT) in xmlDocContentDumpOutput()
1060 if (ctxt->encoding != NULL) in xmlDocContentDumpOutput()
1067 (ctxt->options & XML_SAVE_AS_XML) || in xmlDocContentDumpOutput()
1068 (ctxt->options & XML_SAVE_XHTML)) { in xmlDocContentDumpOutput()
1072 ((ctxt->options & XML_SAVE_NO_DECL) == 0)) { in xmlDocContentDumpOutput()
1081 if (xmlSaveSwitchEncoding(ctxt, (const char*) encoding) < 0) { in xmlDocContentDumpOutput()
1087 if (ctxt->escape == xmlEscapeEntities) in xmlDocContentDumpOutput()
1088 ctxt->escape = NULL; in xmlDocContentDumpOutput()
1089 if (ctxt->escapeAttr == xmlEscapeEntities) in xmlDocContentDumpOutput()
1090 ctxt->escapeAttr = NULL; in xmlDocContentDumpOutput()
1097 if ((ctxt->options & XML_SAVE_NO_DECL) == 0) { in xmlDocContentDumpOutput()
1119 if (ctxt->options & XML_SAVE_XHTML) in xmlDocContentDumpOutput()
1121 if ((ctxt->options & XML_SAVE_NO_XHTML) == 0) { in xmlDocContentDumpOutput()
1133 ctxt->level = 0; in xmlDocContentDumpOutput()
1136 xhtmlNodeDumpOutput(ctxt, child); in xmlDocContentDumpOutput()
1139 xmlNodeDumpOutputInternal(ctxt, child); in xmlDocContentDumpOutput()
1150 xmlSaveClearEncoding(ctxt); in xmlDocContentDumpOutput()
1151 ctxt->escape = oldescape; in xmlDocContentDumpOutput()
1152 ctxt->escapeAttr = oldescapeAttr; in xmlDocContentDumpOutput()
1239 xhtmlAttrListDumpOutput(xmlSaveCtxtPtr ctxt, xmlAttrPtr cur) { in xhtmlAttrListDumpOutput() argument
1248 buf = ctxt->buf; in xhtmlAttrListDumpOutput()
1274 xmlAttrDumpOutput(ctxt, cur); in xhtmlAttrListDumpOutput()
1325 xhtmlNodeListDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in xhtmlNodeListDumpOutput() argument
1329 buf = ctxt->buf; in xhtmlNodeListDumpOutput()
1331 if ((ctxt->format == 1) && (xmlIndentTreeOutput) && in xhtmlNodeListDumpOutput()
1333 xmlOutputBufferWrite(buf, ctxt->indent_size * in xhtmlNodeListDumpOutput()
1334 (ctxt->level > ctxt->indent_nr ? in xhtmlNodeListDumpOutput()
1335 ctxt->indent_nr : ctxt->level), in xhtmlNodeListDumpOutput()
1336 ctxt->indent); in xhtmlNodeListDumpOutput()
1337 xhtmlNodeDumpOutput(ctxt, cur); in xhtmlNodeListDumpOutput()
1338 if (ctxt->format == 1) { in xhtmlNodeListDumpOutput()
1357 xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in xhtmlNodeDumpOutput() argument
1366 xmlDocContentDumpOutput(ctxt, (xmlDocPtr) cur); in xhtmlNodeDumpOutput()
1374 xmlDtdDumpOutput(ctxt, (xmlDtdPtr) cur); in xhtmlNodeDumpOutput()
1378 xhtmlNodeListDumpOutput(ctxt, cur->children); in xhtmlNodeDumpOutput()
1381 buf = ctxt->buf; in xhtmlNodeDumpOutput()
1398 xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); in xhtmlNodeDumpOutput()
1463 xmlAttrDumpOutput(ctxt, (xmlAttrPtr) cur); in xhtmlNodeDumpOutput()
1467 format = ctxt->format; in xhtmlNodeDumpOutput()
1487 xmlNsListDumpOutputCtxt(ctxt, cur->nsDef); in xhtmlNodeDumpOutput()
1497 xhtmlAttrListDumpOutput(ctxt, cur->properties); in xhtmlNodeDumpOutput()
1535 if (ctxt->format == 1) { in xhtmlNodeDumpOutput()
1538 xmlOutputBufferWrite(buf, ctxt->indent_size * in xhtmlNodeDumpOutput()
1539 (ctxt->level + 1 > ctxt->indent_nr ? in xhtmlNodeDumpOutput()
1540 ctxt->indent_nr : ctxt->level + 1), ctxt->indent); in xhtmlNodeDumpOutput()
1544 if (ctxt->encoding) { in xhtmlNodeDumpOutput()
1545 xmlOutputBufferWriteString(buf, (const char *)ctxt->encoding); in xhtmlNodeDumpOutput()
1550 if (ctxt->format == 1) in xhtmlNodeDumpOutput()
1570 if (ctxt->format == 1) { in xhtmlNodeDumpOutput()
1573 xmlOutputBufferWrite(buf, ctxt->indent_size * in xhtmlNodeDumpOutput()
1574 (ctxt->level + 1 > ctxt->indent_nr ? in xhtmlNodeDumpOutput()
1575 ctxt->indent_nr : ctxt->level + 1), ctxt->indent); in xhtmlNodeDumpOutput()
1579 if (ctxt->encoding) { in xhtmlNodeDumpOutput()
1580 xmlOutputBufferWriteString(buf, (const char *)ctxt->encoding); in xhtmlNodeDumpOutput()
1587 xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); in xhtmlNodeDumpOutput()
1612 int level = ctxt->level; in xhtmlNodeDumpOutput()
1613 int indent = ctxt->format; in xhtmlNodeDumpOutput()
1615 ctxt->level = 0; in xhtmlNodeDumpOutput()
1616 ctxt->format = 0; in xhtmlNodeDumpOutput()
1620 ctxt->level = level; in xhtmlNodeDumpOutput()
1621 ctxt->format = indent; in xhtmlNodeDumpOutput()
1648 int level = ctxt->level; in xhtmlNodeDumpOutput()
1649 int indent = ctxt->format; in xhtmlNodeDumpOutput()
1651 ctxt->level = 0; in xhtmlNodeDumpOutput()
1652 ctxt->format = 0; in xhtmlNodeDumpOutput()
1653 xhtmlNodeDumpOutput(ctxt, child); in xhtmlNodeDumpOutput()
1654 ctxt->level = level; in xhtmlNodeDumpOutput()
1655 ctxt->format = indent; in xhtmlNodeDumpOutput()
1663 int indent = ctxt->format; in xhtmlNodeDumpOutput()
1666 if (ctxt->level >= 0) ctxt->level++; in xhtmlNodeDumpOutput()
1667 ctxt->format = format; in xhtmlNodeDumpOutput()
1668 xhtmlNodeListDumpOutput(ctxt, cur->children); in xhtmlNodeDumpOutput()
1669 if (ctxt->level > 0) ctxt->level--; in xhtmlNodeDumpOutput()
1670 ctxt->format = indent; in xhtmlNodeDumpOutput()
1672 xmlOutputBufferWrite(buf, ctxt->indent_size * in xhtmlNodeDumpOutput()
1673 (ctxt->level > ctxt->indent_nr ? in xhtmlNodeDumpOutput()
1674 ctxt->indent_nr : ctxt->level), in xhtmlNodeDumpOutput()
1675 ctxt->indent); in xhtmlNodeDumpOutput()
1832 xmlSaveDoc(xmlSaveCtxtPtr ctxt, xmlDocPtr doc) in xmlSaveDoc() argument
1836 if ((ctxt == NULL) || (doc == NULL)) return(-1); in xmlSaveDoc()
1837 if (xmlDocContentDumpOutput(ctxt, doc) < 0) in xmlSaveDoc()
1854 xmlSaveTree(xmlSaveCtxtPtr ctxt, xmlNodePtr node) in xmlSaveTree() argument
1858 if ((ctxt == NULL) || (node == NULL)) return(-1); in xmlSaveTree()
1859 xmlNodeDumpOutputInternal(ctxt, node); in xmlSaveTree()
1873 xmlSaveFlush(xmlSaveCtxtPtr ctxt) in xmlSaveFlush() argument
1875 if (ctxt == NULL) return(-1); in xmlSaveFlush()
1876 if (ctxt->buf == NULL) return(-1); in xmlSaveFlush()
1877 return(xmlOutputBufferFlush(ctxt->buf)); in xmlSaveFlush()
1890 xmlSaveClose(xmlSaveCtxtPtr ctxt) in xmlSaveClose() argument
1894 if (ctxt == NULL) return(-1); in xmlSaveClose()
1895 ret = xmlSaveFlush(ctxt); in xmlSaveClose()
1896 xmlFreeSaveCtxt(ctxt); in xmlSaveClose()
1910 xmlSaveSetEscape(xmlSaveCtxtPtr ctxt, xmlCharEncodingOutputFunc escape) in xmlSaveSetEscape() argument
1912 if (ctxt == NULL) return(-1); in xmlSaveSetEscape()
1913 ctxt->escape = escape; in xmlSaveSetEscape()
1927 xmlSaveSetAttrEscape(xmlSaveCtxtPtr ctxt, xmlCharEncodingOutputFunc escape) in xmlSaveSetAttrEscape() argument
1929 if (ctxt == NULL) return(-1); in xmlSaveSetAttrEscape()
1930 ctxt->escapeAttr = escape; in xmlSaveSetAttrEscape()
2192 xmlSaveCtxt ctxt; in xmlNodeDumpOutput() local
2205 memset(&ctxt, 0, sizeof(ctxt)); in xmlNodeDumpOutput()
2206 ctxt.doc = doc; in xmlNodeDumpOutput()
2207 ctxt.buf = buf; in xmlNodeDumpOutput()
2208 ctxt.level = level; in xmlNodeDumpOutput()
2209 ctxt.format = format ? 1 : 0; in xmlNodeDumpOutput()
2210 ctxt.encoding = (const xmlChar *) encoding; in xmlNodeDumpOutput()
2211 xmlSaveCtxtInit(&ctxt); in xmlNodeDumpOutput()
2212 ctxt.options |= XML_SAVE_AS_XML; in xmlNodeDumpOutput()
2223 xhtmlNodeDumpOutput(&ctxt, cur); in xmlNodeDumpOutput()
2226 xmlNodeDumpOutputInternal(&ctxt, cur); in xmlNodeDumpOutput()
2248 xmlSaveCtxt ctxt; in xmlDocDumpFormatMemoryEnc() local
2291 memset(&ctxt, 0, sizeof(ctxt)); in xmlDocDumpFormatMemoryEnc()
2292 ctxt.doc = out_doc; in xmlDocDumpFormatMemoryEnc()
2293 ctxt.buf = out_buff; in xmlDocDumpFormatMemoryEnc()
2294 ctxt.level = 0; in xmlDocDumpFormatMemoryEnc()
2295 ctxt.format = format ? 1 : 0; in xmlDocDumpFormatMemoryEnc()
2296 ctxt.encoding = (const xmlChar *) txt_encoding; in xmlDocDumpFormatMemoryEnc()
2297 xmlSaveCtxtInit(&ctxt); in xmlDocDumpFormatMemoryEnc()
2298 ctxt.options |= XML_SAVE_AS_XML; in xmlDocDumpFormatMemoryEnc()
2299 xmlDocContentDumpOutput(&ctxt, out_doc); in xmlDocDumpFormatMemoryEnc()
2385 xmlSaveCtxt ctxt; in xmlDocFormatDump() local
2410 memset(&ctxt, 0, sizeof(ctxt)); in xmlDocFormatDump()
2411 ctxt.doc = cur; in xmlDocFormatDump()
2412 ctxt.buf = buf; in xmlDocFormatDump()
2413 ctxt.level = 0; in xmlDocFormatDump()
2414 ctxt.format = format ? 1 : 0; in xmlDocFormatDump()
2415 ctxt.encoding = (const xmlChar *) encoding; in xmlDocFormatDump()
2416 xmlSaveCtxtInit(&ctxt); in xmlDocFormatDump()
2417 ctxt.options |= XML_SAVE_AS_XML; in xmlDocFormatDump()
2418 xmlDocContentDumpOutput(&ctxt, cur); in xmlDocFormatDump()
2452 xmlSaveCtxt ctxt; in xmlSaveFileTo() local
2460 memset(&ctxt, 0, sizeof(ctxt)); in xmlSaveFileTo()
2461 ctxt.doc = cur; in xmlSaveFileTo()
2462 ctxt.buf = buf; in xmlSaveFileTo()
2463 ctxt.level = 0; in xmlSaveFileTo()
2464 ctxt.format = 0; in xmlSaveFileTo()
2465 ctxt.encoding = (const xmlChar *) encoding; in xmlSaveFileTo()
2466 xmlSaveCtxtInit(&ctxt); in xmlSaveFileTo()
2467 ctxt.options |= XML_SAVE_AS_XML; in xmlSaveFileTo()
2468 xmlDocContentDumpOutput(&ctxt, cur); in xmlSaveFileTo()
2490 xmlSaveCtxt ctxt; in xmlSaveFormatFileTo() local
2500 memset(&ctxt, 0, sizeof(ctxt)); in xmlSaveFormatFileTo()
2501 ctxt.doc = cur; in xmlSaveFormatFileTo()
2502 ctxt.buf = buf; in xmlSaveFormatFileTo()
2503 ctxt.level = 0; in xmlSaveFormatFileTo()
2504 ctxt.format = format ? 1 : 0; in xmlSaveFormatFileTo()
2505 ctxt.encoding = (const xmlChar *) encoding; in xmlSaveFormatFileTo()
2506 xmlSaveCtxtInit(&ctxt); in xmlSaveFormatFileTo()
2507 ctxt.options |= XML_SAVE_AS_XML; in xmlSaveFormatFileTo()
2508 xmlDocContentDumpOutput(&ctxt, cur); in xmlSaveFormatFileTo()
2529 xmlSaveCtxt ctxt; in xmlSaveFormatFileEnc() local
2555 memset(&ctxt, 0, sizeof(ctxt)); in xmlSaveFormatFileEnc()
2556 ctxt.doc = cur; in xmlSaveFormatFileEnc()
2557 ctxt.buf = buf; in xmlSaveFormatFileEnc()
2558 ctxt.level = 0; in xmlSaveFormatFileEnc()
2559 ctxt.format = format ? 1 : 0; in xmlSaveFormatFileEnc()
2560 ctxt.encoding = (const xmlChar *) encoding; in xmlSaveFormatFileEnc()
2561 xmlSaveCtxtInit(&ctxt); in xmlSaveFormatFileEnc()
2562 ctxt.options |= XML_SAVE_AS_XML; in xmlSaveFormatFileEnc()
2564 xmlDocContentDumpOutput(&ctxt, cur); in xmlSaveFormatFileEnc()