MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / htmlDocContentDumpFormatOutput

Function htmlDocContentDumpFormatOutput

Externals/LibXML/HTMLtree.c:967–990  ·  view source on GitHub ↗

* htmlDocContentDumpFormatOutput: * @buf: the HTML buffer output * @cur: the document * @encoding: the encoding string * @format: should formatting spaces been added * * Dump an HTML document. */

Source from the content-addressed store, hash-verified

965 * Dump an HTML document.
966 */
967void
968htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur,
969 const char *encoding, int format) {
970 int type;
971
972 xmlInitParser();
973
974 if ((buf == NULL) || (cur == NULL))
975 return;
976
977 /*
978 * force to output the stuff as HTML, especially for entities
979 */
980 type = cur->type;
981 cur->type = XML_HTML_DOCUMENT_NODE;
982 if (cur->intSubset != NULL) {
983 htmlDtdDumpOutput(buf, cur, NULL);
984 }
985 if (cur->children != NULL) {
986 htmlNodeListDumpOutput(buf, cur, cur->children, encoding, format);
987 }
988 xmlOutputBufferWriteString(buf, "\n");
989 cur->type = (xmlElementType) type;
990}
991
992/**
993 * htmlDocContentDumpOutput:

Callers 6

htmlDocDumpMemoryFormatFunction · 0.85
htmlDocContentDumpOutputFunction · 0.85
htmlSaveFileFormatFunction · 0.85
libxml_serializeNodeFunction · 0.85
libxml_saveNodeToFunction · 0.85

Calls 3

htmlDtdDumpOutputFunction · 0.85
htmlNodeListDumpOutputFunction · 0.85

Tested by 1