Esempio n. 1
0
/**
 * htmlDocDumpMemory:
 * @cur:  the document
 * @mem:  OUT: the memory pointer
 * @size:  OUT: the memory length
 *
 * Dump an HTML document in memory and return the xmlChar * and it's size.
 * It's up to the caller to free the memory.
 */
void
htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) {
	htmlDocDumpMemoryFormat(cur, mem, size, 1);
}
Esempio n. 2
0
char *htmlDocDumpToString(htmlDocPtr doc, int format) {
	xmlChar *buff;
	int buffersize;
	htmlDocDumpMemoryFormat(doc, &buff, &buffersize, format);
	return (char*)buff;
}